diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-07-19 07:15:35 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-07-19 07:15:35 +0000 |
commit | c11c1c2800a91e1795ca75fb4206948015a976c3 (patch) | |
tree | 459a2c239615c61b1c5425617587a389b550e303 /modules/comment/comment.module | |
parent | 751a6979efe05d7d065cb7b3042ffcdb60182c8a (diff) | |
download | brdo-c11c1c2800a91e1795ca75fb4206948015a976c3.tar.gz brdo-c11c1c2800a91e1795ca75fb4206948015a976c3.tar.bz2 |
#73605 by RobRoy, make hook_link() implementations consistent with documentation.
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r-- | modules/comment/comment.module | 6 |
1 files changed, 3 insertions, 3 deletions
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; |