You are here

function _biblio_search_reset in Bibliography Module 7.2

Same name and namespace in other branches
  1. 7 includes/biblio.search.inc \_biblio_search_reset()

Take action when the search index is going to be rebuilt.

Modules that use hook_update_index() should update their indexing bookkeeping so that it starts from scratch the next time hook_update_index() is called.

File

includes/biblio.search.inc, line 39

Code

function _biblio_search_reset() {
  db_update('search_dataset')
    ->fields(array(
    'reindex' => REQUEST_TIME,
  ))
    ->condition('type', 'node')
    ->execute();
}