search_cron
function search_cron
search_cron()
Implements hook_cron().
Fires hook_update_index() in all modules and cleans up dirty words.
See also
File
- modules/search/search.module, line 356
- Enables site-wide keyword searching.
Code
function search_cron() { // We register a shutdown function to ensure that search_total is always up // to date. drupal_register_shutdown_function('search_update_totals'); foreach (variable_get('search_active_modules', array('node', 'user')) as $module) { // Update word index module_invoke($module, 'update_index'); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!search!search.module/function/search_cron/7.x