diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-07-01 20:39:20 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-07-01 20:39:20 +0000 |
commit | e9ca98b69d45b935fe4963a345cba92a87164ddb (patch) | |
tree | 44649b4db3ce1c4c8919255fb55f459c0f44c673 /modules/comment/comment.admin.inc | |
parent | d9ab38b2d02037e0af3916b1d99120389e9aadd9 (diff) | |
download | brdo-e9ca98b69d45b935fe4963a345cba92a87164ddb.tar.gz brdo-e9ca98b69d45b935fe4963a345cba92a87164ddb.tar.bz2 |
- Patch #504678 by catch: use objects instead of arrays.
Diffstat (limited to 'modules/comment/comment.admin.inc')
-rw-r--r-- | modules/comment/comment.admin.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/comment/comment.admin.inc b/modules/comment/comment.admin.inc index 57f15e543..c39741cda 100644 --- a/modules/comment/comment.admin.inc +++ b/modules/comment/comment.admin.inc @@ -140,7 +140,7 @@ function comment_admin_overview_submit($form, &$form_state) { $comment = comment_load($cid); _comment_update_node_statistics($comment->nid); // Allow modules to respond to the updating of a comment. - comment_invoke_comment($comment, $form_state['values']['operation']); + module_invoke_all('comment_' . $form_state['values']['operation'], $comment); // Add an entry to the watchdog log. watchdog('content', 'Comment: updated %subject.', array('%subject' => $comment->subject), WATCHDOG_NOTICE, l(t('view'), 'node/' . $comment->nid, array('fragment' => 'comment-' . $comment->cid))); } @@ -283,7 +283,7 @@ function _comment_delete_thread($comment) { ->condition('cid', $comment->cid) ->execute(); watchdog('content', 'Comment: deleted %subject.', array('%subject' => $comment->subject)); - comment_invoke_comment($comment, 'delete'); + module_invoke_all('comment_delete', $comment); // Delete the comment's replies. $result = db_query('SELECT c.*, u.name AS registered_name, u.uid FROM {comment} c INNER JOIN {users} u ON u.uid = c.uid WHERE pid = :cid', array(':cid' => $comment->cid)); |