search_comment_insert

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

Implements hook_comment_insert().

Code

modules/search/search.module, line 818

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