function search_comment_insert

7.x search.module search_comment_insert($comment)

Implements hook_comment_insert().

File

drupal/modules/search/search.module, line 818
Enables site-wide keyword searching.

Code

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