diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-06-23 02:45:35 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-06-23 02:45:35 +0000 |
commit | c28bba827e0c62ab92062c1e0cc0490ff50079fe (patch) | |
tree | 929d1b7860c738b0eb5eab1e632843cb9e7955d4 /modules/comment | |
parent | 522b923a8be253498e6083fd579f458f17ad30d9 (diff) | |
download | brdo-c28bba827e0c62ab92062c1e0cc0490ff50079fe.tar.gz brdo-c28bba827e0c62ab92062c1e0cc0490ff50079fe.tar.bz2 |
- Patch #834924 by jhodgdon: entity_invoke() is worthless.
Diffstat (limited to 'modules/comment')
-rw-r--r-- | modules/comment/comment.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index d54a33a9c..8b1041a5e 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -1451,7 +1451,7 @@ function comment_save($comment) { field_attach_update('comment', $comment); // Allow modules to respond to the updating of a comment. module_invoke_all('comment_update', $comment); - entity_invoke('update', 'comment', $comment); + module_invoke_all('entity_update', $comment, 'comment'); } else { // Add the comment to database. This next section builds the thread field. @@ -1540,7 +1540,7 @@ function comment_save($comment) { // Tell the other modules a new comment has been submitted. module_invoke_all('comment_insert', $comment); - entity_invoke('insert', 'comment', $comment); + module_invoke_all('entity_insert', $comment, 'comment'); } if ($comment->status == COMMENT_PUBLISHED) { module_invoke_all('comment_publish', $comment); |