search_cron
modules/search/search.module, строка 297
- Версии
- 5 – 6
search_cron()
Реализация hook_cron()
.
Fires hook_update_index()
in all modules and cleans up dirty words (see
search_dirty).
Код
<?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');
}
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии