search_touch_node
modules/search/search.module, строка 623
- Версии
- 6
search_touch_node($nid)
Change a node's changed timestamp to 'now'
to force reindexing.
Параметры
$nid
The nid of the node that needs reindexing.
Код
<?php
function search_touch_node($nid) {
db_query("UPDATE {search_dataset} SET reindex = %d WHERE sid = %d AND type = 'node'", time(), $nid);
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии