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/comment/comment.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/comment/comment.module') diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 842a5fc10..9002ceb9b 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -183,12 +183,12 @@ function theme_comment_block() { /** * Implementation of hook_link(). */ -function comment_link($type, $node = 0, $main = 0) { +function comment_link($type, $node = NULL, $teaser = FALSE) { $links = array(); if ($type == 'node' && $node->comment) { - if ($main) { + if ($teaser) { // Main page: display the number of comments that have been posted. if (user_access('access comments')) { @@ -252,7 +252,7 @@ function comment_link($type, $node = 0, $main = 0) { } if ($type == 'comment') { - $links = comment_links($node, $main); + $links = comment_links($node, $teaser); } return $links; -- cgit v1.2.3