diff options
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') |