From 91bc8bed90634548d06087e9ff9d2ad616e0392f Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Fri, 15 Oct 2010 03:36:21 +0000 Subject: #709892 by drunken monkey, Yorirou: Complete entity CRUD hook invocations: Add a hook_entity_delete() for consistency. --- modules/comment/comment.module | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/comment') 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(); -- cgit v1.2.3