From c11c1c2800a91e1795ca75fb4206948015a976c3 Mon Sep 17 00:00:00 2001 From: Neil Drumm Date: Wed, 19 Jul 2006 07:15:35 +0000 Subject: #73605 by RobRoy, make hook_link() implementations consistent with documentation. --- modules/node/node.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/node') 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", -- cgit v1.2.3