You are here

function photos_search_reset in Album Photos 7.3

Implements hook_search_reset().

File

./photos.module, line 2892
Implementation of photos.module.

Code

function photos_search_reset() {
  db_update('search_dataset')
    ->fields(array(
    'reindex' => REQUEST_TIME,
  ))
    ->condition('type', 'photos')
    ->execute();
  variable_set('photos_search_max_id_ever', 0);
  variable_set('photos_search_max_id_reindex', 0);
}