diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-08-17 13:10:45 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-08-17 13:10:45 +0000 |
commit | 14ce7b4d4ebaf1091083d46b86d3a17964b8c8a1 (patch) | |
tree | 841d3c8af039e5da91af138a83a2d024e0afc502 /modules/comment/comment.module | |
parent | 92d536493cc8789ec12564790a5da0e46f9ca9bd (diff) | |
download | brdo-14ce7b4d4ebaf1091083d46b86d3a17964b8c8a1.tar.gz brdo-14ce7b4d4ebaf1091083d46b86d3a17964b8c8a1.tar.bz2 |
#545956 by claudiu.cristea: Add a presave hook to comments.
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r-- | modules/comment/comment.module | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 1681f7ea6..4ca19a2fa 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -1237,6 +1237,9 @@ function comment_save($comment) { field_attach_presave('comment', $comment); + // Allow modules to alter the comment before saving. + module_invoke_all('comment_presave', $comment); + if ($comment->cid) { // Update the comment in the database. db_update('comment') |