search_touch_node
- Versions
- 6 – 7
search_touch_node($nid)
Change a node's changed timestamp to 'now' to force reindexing.
Parameters
$nid The nid of the node that needs reindexing.
Code
modules/search/search.module, line 705
<?php
function search_touch_node($nid) {
db_update('search_dataset')
->fields(array('reindex' => REQUEST_TIME))
->condition('type', 'node')
->condition('sid', $nid)
->execute();
}
?>Login or register to post comments 