search_cron

Versions
4.6 – 7
search_cron()

Implementation of hook_cron().

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

Code

modules/search/search.module, line 297

<?php
function search_cron() {
  // We register a shutdown function to ensure that search_total is always up
  // to date.
  register_shutdown_function('search_update_totals');

  // Update word index
  foreach (module_list() as $module) {
    module_invoke($module, 'update_index');
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.