function tracker_comment_update
Same name in other branches
- 9 core/modules/tracker/tracker.module \tracker_comment_update()
- 8.9.x core/modules/tracker/tracker.module \tracker_comment_update()
- 10 core/modules/tracker/tracker.module \tracker_comment_update()
- 11.x core/modules/tracker/tracker.module \tracker_comment_update()
Implements hook_comment_update().
Comment module doesn't call hook_comment_unpublish() when saving individual comments so we need to check for those here.
File
-
modules/
tracker/ tracker.module, line 208
Code
function tracker_comment_update($comment) {
// comment_save() calls hook_comment_publish() for all published comments
// so we need to handle all other values here.
if ($comment->status != COMMENT_PUBLISHED) {
_tracker_remove($comment->nid, $comment->uid, $comment->changed);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.