node_link

Definition

node_link($type, $node = NULL, $teaser = FALSE)
node/node.module, line 1107

Description

Implementation of hook_link().

Code

<?php
function node_link($type, $node = NULL, $teaser = FALSE) {
  $links = array();

  if ($type == 'node') {
    if ($teaser == 1 && $node->teaser && $node->readmore) {
      $links['node_read_more'] = array(
        'title' => t('Read more'),
        'href' => "node/$node->nid",
        'attributes' => array('title' => t('Read the rest of this posting.'))
      );
    }
  }

  return $links;
}
?>