function paging_link in Paging 5
Same name and namespace in other branches
- 6 paging.module \paging_link()
Implementation of hook_link().
File
- ./
paging.module, line 359
Code
function paging_link($type, $node = 0, $main = 0) {
$links = array();
if ($type == 'node') {
if (array_key_exists('links', $node)) {
$links = $node->links;
}
if ($main == 1 && $node->teaser && $node->pagemore && variable_get('paging_read_more_enabled', 0)) {
$links['node_read_more'] = array(
'title' => t('Read more'),
'href' => drupal_get_path_alias("node/{$node->nid}"),
'attributes' => array(
'title' => t('Read the rest of this posting.'),
'class' => 'read-more-paging',
),
'query' => 'page=0,1',
);
}
}
return $links;
}