function 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

drupal/core/modules/tracker/tracker.module, line 231
Tracks recent content posted by a user or users.

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->value != COMMENT_PUBLISHED) {
    _tracker_remove($comment->nid->target_id, $comment->uid->target_id, $comment->changed->value);
  }
}