search_dirty
modules/search/search.module, строка 249
- Версии
- 5 – 6
search_dirty($word = NULL)
Marks a word as dirty (or retrieves the list of dirty words). This is used during indexing (cron). Words which are dirty have outdated total counts in the search_total table, and need to be recounted.
Код
<?php
function search_dirty($word = NULL) {
static $dirty = array();
if ($word !== NULL) {
$dirty[$word] = TRUE;
}
else {
return $dirty;
}
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии