1 search.module | search_cron() |
Implements hook_cron().
Fires hook_update_index() in all modules and cleans up dirty words.
See also
File
- core/
modules/ search/ search.module, line 421 - Enables site-wide keyword searching.
Code
function search_cron() {
// We register a shutdown function to ensure that search_total is always up-to-date.
backdrop_register_shutdown_function('search_update_totals');
$search_active_modules = config_get('search.settings', 'search_active_modules');
if (isset($search_active_modules)) {
foreach ($search_active_modules as $module) {
module_invoke($module, 'update_index');
}
}
}