Skip navigation
Help

hook_comment_update

7 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()

1 invocation of hook_comment_update()

File

drupal/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);
}