diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-01-04 16:10:48 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-01-04 16:10:48 +0000 |
commit | 6690a4ec4cf75b2f18cc53bf67f011c1ecc45e15 (patch) | |
tree | 5cac9cb74340d9d26922f3041cb06a9ec9c4e5cd /modules/comment/comment.module | |
parent | fbf4e0f1167cdc88b4f8244df63a917ce5167191 (diff) | |
download | brdo-6690a4ec4cf75b2f18cc53bf67f011c1ecc45e15.tar.gz brdo-6690a4ec4cf75b2f18cc53bf67f011c1ecc45e15.tar.bz2 |
- Patch #353480 by dereine, justinrandell: remove from hook_comment().
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); } |