search_comment
modules/search/search.module, строка 654
- Версии
- 6
search_comment($a1, $op)
Implementation of hook_comment()
.
Код
<?php
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;
}
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии