1 comment.api.php hook_comment_update($comment)

Respond to updates to a comment.

Parameters

$comment: The comment object.

Related topics

File

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