function search_comment in Drupal 6
Implementation of hook_comment().
File
- modules/
search/ search.module, line 654 - Enables site-wide keyword searching.
Code
function search_comment($a1, $op) {
switch ($op) {
// Reindex the node when comments are added or changed
case 'insert':
case 'update':
case 'delete':
case 'publish':
case 'unpublish':
search_touch_node(is_array($a1) ? $a1['nid'] : $a1->nid);
break;
}
}