forum_comment_update
- Versions
- 7
forum_comment_update($comment)
Implements hook_comment_update().
Comment module doesn't call hook_comment_unpublish() when saving individual comments so we need to check for those here.
Code
modules/forum/forum.module, line 472
<?php
function forum_comment_update($comment) {
// comment_save() calls hook_comment_publish() for all published comments
// so we to handle all other values here.
if (!$comment->status) {
_forum_update_forum_index($comment->nid);
}
}
?>Login or register to post comments 