tracker_comment_update
function tracker_comment_update
tracker_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.
File
- modules/tracker/tracker.module, line 208
- 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 != COMMENT_PUBLISHED) { _tracker_remove($comment->nid, $comment->uid, $comment->changed); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!tracker!tracker.module/function/tracker_comment_update/7.x