You are here

function _search_by_page_rebuild_all_paths in Search by Page 8

Same name and namespace in other branches
  1. 6 search_by_page.module \_search_by_page_rebuild_all_paths()
  2. 7 search_by_page.module \_search_by_page_rebuild_all_paths()

Internal function: rebuilds the paths table for all modules.

Calls all modules' hook_search_by_page_paths() implementations; each should return an array of Drupal paths to be indexed.

Parameters

$reset_items: TRUE if the last_index_time for items whose max_time has been exceeded should be reset. FALSE to leave it alone.

See also

search_by_page_rebuild_paths()

2 calls to _search_by_page_rebuild_all_paths()
search_by_page_update_index in ./search_by_page.module
Implements hook_update_index().
_search_by_page_status_details in ./search_by_page.module
Generates a detailed status listing for the Search status page.
1 string reference to '_search_by_page_rebuild_all_paths'
search_by_page_admin_settings in ./search_by_page.module
Returns the admin settings page for a single search environment.

File

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

Code

function _search_by_page_rebuild_all_paths($reset_items = FALSE) {
  $envs = search_by_page_list_environments();
  foreach (\Drupal::moduleHandler()
    ->getImplementations('search_by_page_paths') as $module) {
    foreach ($envs as $envid) {
      search_by_page_rebuild_paths($module, $envid, $reset_items);
    }
  }
}