hook_comment_update

  1. drupal
    1. 8
    2. 7
Versions
7 – 8 hook_comment_update($comment)

The comment is being updated.

Parameters

$comment The comment object.

Related topics

Code

modules/comment/comment.api.php, line 43

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