diff options
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r-- | modules/comment/comment.module | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index bafb8059c..44f648ca3 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -1990,7 +1990,7 @@ function _comment_update_node_statistics($nid) { } /** - * Invoke a hook_comment() operation in all modules. + * Invoke a hook_comment_[$op]() operation in all modules. * * @param &$comment * A comment object. @@ -2001,9 +2001,9 @@ function _comment_update_node_statistics($nid) { */ function comment_invoke_comment(&$comment, $op) { $return = array(); - foreach (module_implements('comment') as $module) { - $function = $module . '_comment'; - $result = $function($comment, $op); + foreach (module_implements('comment_' . $op) as $module) { + $function = $module . '_comment_' . $op; + $result = $function($comment); if (isset($result) && is_array($result)) { $return = array_merge($return, $result); } |