function search_cron

cis7 search.module search_cron()
cle7 search.module search_cron()
elmsmedia7 search.module search_cron()
icor7 search.module search_cron()
meedjum_blog7 search.module search_cron()
mooc7 search.module search_cron()

Implements hook_cron().

Fires hook_update_index() in all modules and cleans up dirty words.

See also

search_dirty()

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');
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.