function term_search_taxonomy_term_update in Term Search 7
Implements hook_taxonomy_term_update().
Sets the term to be reindexed when the term is updated.
File
- ./
term_search.module, line 199 - Functions to index and search taxonomy terms.
Code
function term_search_taxonomy_term_update($term) {
db_update('search_dataset')
->condition('sid', $term->tid)
->condition('type', 'term')
->fields(array(
'reindex' => REQUEST_TIME,
))
->execute();
}