hook_search_reset
- Versions
- 7
hook_search_reset()
The search index is going to be rebuilt.
Modules which use hook_update_index() should update their indexing bookkeeping so that it starts from scratch the next time hook_update_index() is called.
Related topics
Code
modules/search/search.api.php, line 65
<?php
function hook_search_reset() {
db_update('search_dataset')
->fields(array('reindex' => REQUEST_TIME))
->condition('type', 'node')
->execute();
}
?>Login or register to post comments 