summaryrefslogtreecommitdiff
path: root/modules/node
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-07-19 07:15:35 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-07-19 07:15:35 +0000
commitc11c1c2800a91e1795ca75fb4206948015a976c3 (patch)
tree459a2c239615c61b1c5425617587a389b550e303 /modules/node
parent751a6979efe05d7d065cb7b3042ffcdb60182c8a (diff)
downloadbrdo-c11c1c2800a91e1795ca75fb4206948015a976c3.tar.gz
brdo-c11c1c2800a91e1795ca75fb4206948015a976c3.tar.bz2
#73605 by RobRoy, make hook_link() implementations consistent with documentation.
Diffstat (limited to 'modules/node')
-rw-r--r--modules/node/node.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index d2fe1775a..f47836660 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -801,7 +801,7 @@ function node_comment_mode($nid) {
/**
* Implementation of hook_link().
*/
-function node_link($type, $node = 0, $main = 0) {
+function node_link($type, $node = NULL, $teaser = FALSE) {
$links = array();
if ($type == 'node') {
@@ -809,7 +809,7 @@ function node_link($type, $node = 0, $main = 0) {
$links = $node->links;
}
- if ($main == 1 && $node->teaser && $node->readmore) {
+ if ($teaser == 1 && $node->teaser && $node->readmore) {
$links['node_read_more'] = array(
'title' => t('read more'),
'href' => "node/$node->nid",