function read_more_link in Read More Link 7
Prepares the link for theming and returns a link.
XSS checking and other safety measures are performed here to prevent themers from omitting them.
2 calls to read_more_link()
- read_more_node_view in ./
read_more.module - Implements hook_node_view().
- read_more_tokens in ./
read_more.tokens.inc - Implements hook_tokens().
File
- ./
read_more.module, line 123 - Customize the "Read More" link shown in teasers.
Code
function read_more_link($node, $display, $view_mode) {
$uri = entity_uri('node', $node);
if (empty($uri)) {
return array();
}
// Send prepared data to the theme function.
return array(
'#theme' => 'read_more_link',
'#node' => $node,
'#display' => $display,
'#view_mode' => $view_mode,
);
}