You are here

function search_by_page_search_reset in Search by Page 8

Same name and namespace in other branches
  1. 7 search_by_page.module \search_by_page_search_reset()

Implements hook_search_reset().

Marks all items in the Search by Page database as not indexed.

File

./search_by_page.module, line 428
Main module file for Drupal module Search by Page.

Code

function search_by_page_search_reset() {
  \Drupal::database()
    ->update('search_by_page_path')
    ->fields([
    'last_index_time' => 0,
  ])
    ->execute();
}