diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-30 02:01:41 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-30 02:01:41 +0000 |
commit | 02c1eeee3fc904ecc7845902cc11ba545dd9466b (patch) | |
tree | eb0af2759c9e1d3ad8a83fef225df3e8ed28ba9c /modules/comment | |
parent | b1d0d1340c2f63ed5e1c8ec8df8b9e70edfe49ce (diff) | |
download | brdo-02c1eeee3fc904ecc7845902cc11ba545dd9466b.tar.gz brdo-02c1eeee3fc904ecc7845902cc11ba545dd9466b.tar.bz2 |
#684202 by catch: Added Entity insert/delete/update hooks, to support caching.
Diffstat (limited to 'modules/comment')
-rw-r--r-- | modules/comment/comment.module | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 664d2aca8..97d862f73 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -1370,6 +1370,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); // Add an entry to the watchdog log. watchdog('content', 'Comment: updated %subject.', array('%subject' => $comment->subject), WATCHDOG_NOTICE, l(t('view'), 'comment/' . $comment->cid, array('fragment' => 'comment-' . $comment->cid))); } @@ -1453,6 +1454,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); // Add an entry to the watchdog log. watchdog('content', 'Comment: added %subject.', array('%subject' => $comment->subject), WATCHDOG_NOTICE, l(t('view'), 'comment/' . $comment->cid, array('fragment' => 'comment-' . $comment->cid))); } |