function hook_comment_update

7.x comment.api.php hook_comment_update($comment)

The comment is being updated.

Parameters

$comment: The comment object.

Related topics

5 functions implement hook_comment_update()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

entity_crud_hook_test_comment_update in drupal-7.x/modules/simpletest/tests/entity_crud_hook_test.module
Implements hook_comment_update().
forum_comment_update in drupal-7.x/modules/forum/forum.module
Implements hook_comment_update().
search_comment_update in drupal-7.x/modules/search/search.module
Implements hook_comment_update().
tracker_comment_update in drupal-7.x/modules/tracker/tracker.module
Implements hook_comment_update().
trigger_comment_update in drupal-7.x/modules/trigger/trigger.module
Implements hook_comment_update().
1 invocation of hook_comment_update()
comment_save in drupal-7.x/modules/comment/comment.module
Accepts a submission of new or changed comment content.

File

drupal-7.x/modules/comment/comment.api.php, line 43
Hooks provided by the Comment module.

Code

function hook_comment_update($comment) {
  // Reindex the node when comments are updated.
  search_touch_node($comment->nid);
}