function data_search_cron in Data 8
Same name and namespace in other branches
- 6 data_search/data_search.module \data_search_cron()
- 7 data_search/data_search.module \data_search_cron()
Implements hook_cron().
Wipe all orphaned search records.
@todo: Move clean up of deleted records into TableFactory::delete() once there is a build query > alter query > execute query pattern implemented.
File
- data_search/
data_search.module, line 41
Code
function data_search_cron() {
$tables = data_search_get_tables();
foreach ($tables as $table) {
data_search_wipe($table);
}
}