diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-03-06 20:52:55 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-03-06 20:52:55 +0000 |
commit | f51bc544f28366071d3e9a9f5c3c77f55efb76d7 (patch) | |
tree | 43c2e283b8658c3fd0cf925d9b6fc55a4bd159c1 | |
parent | 71b0e2ddb7f9aa5dfce884606dab56aab86923b4 (diff) | |
download | brdo-f51bc544f28366071d3e9a9f5c3c77f55efb76d7.tar.gz brdo-f51bc544f28366071d3e9a9f5c3c77f55efb76d7.tar.bz2 |
- Patch #51142 by markus: hook_comment not called for all update operations.
-rw-r--r-- | modules/comment.module | 4 | ||||
-rw-r--r-- | modules/comment/comment.module | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/modules/comment.module b/modules/comment.module index abcc7925f..51cf65aa1 100644 --- a/modules/comment.module +++ b/modules/comment.module @@ -1003,6 +1003,10 @@ function comment_admin_overview_submit($form_id, $edit) { db_query($query, $cid); $comment = _comment_load($cid); _comment_update_node_statistics($comment->nid); + // Allow modules to respond to the updating of a comment. + comment_invoke_comment($comment, $edit['operation']); + // Add an entry to the watchdog log. + watchdog('content', t('Comment: updated %subject.', array('%subject' => theme('placeholder', $comment->subject))), WATCHDOG_NOTICE, l(t('view'), 'node/'. $comment->nid, NULL, NULL, 'comment-'. $comment->cid)); } } cache_clear_all(); diff --git a/modules/comment/comment.module b/modules/comment/comment.module index abcc7925f..51cf65aa1 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -1003,6 +1003,10 @@ function comment_admin_overview_submit($form_id, $edit) { db_query($query, $cid); $comment = _comment_load($cid); _comment_update_node_statistics($comment->nid); + // Allow modules to respond to the updating of a comment. + comment_invoke_comment($comment, $edit['operation']); + // Add an entry to the watchdog log. + watchdog('content', t('Comment: updated %subject.', array('%subject' => theme('placeholder', $comment->subject))), WATCHDOG_NOTICE, l(t('view'), 'node/'. $comment->nid, NULL, NULL, 'comment-'. $comment->cid)); } } cache_clear_all(); |