summaryrefslogtreecommitdiff
path: root/modules/comment
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-10-15 03:36:21 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-10-15 03:36:21 +0000
commit91bc8bed90634548d06087e9ff9d2ad616e0392f (patch)
treec448567630985e68b3f072aea92794eb2662c6de /modules/comment
parent8ab93aeaf11a90ff456c91382b4e7f780d632de3 (diff)
downloadbrdo-91bc8bed90634548d06087e9ff9d2ad616e0392f.tar.gz
brdo-91bc8bed90634548d06087e9ff9d2ad616e0392f.tar.bz2
#709892 by drunken monkey, Yorirou: Complete entity CRUD hook invocations: Add a hook_entity_delete() for consistency.
Diffstat (limited to 'modules/comment')
-rw-r--r--modules/comment/comment.module1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 6a3cc884b..cef42dbfc 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -1592,6 +1592,7 @@ function comment_delete_multiple($cids) {
foreach ($comments as $comment) {
field_attach_delete('comment', $comment);
module_invoke_all('comment_delete', $comment);
+ module_invoke_all('entity_delete', $comment, 'comment');
// Delete the comment's replies.
$child_cids = db_query('SELECT cid FROM {comment} WHERE pid = :cid', array(':cid' => $comment->cid))->fetchCol();