search_comment_publish

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

Implements hook_comment_publish().

Code

modules/search/search.module, line 842

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