You are here

function data_search_cron in Data 6

Same name and namespace in other branches
  1. 8 data_search/data_search.module \data_search_cron()
  2. 7 data_search/data_search.module \data_search_cron()

Implementation of hook_cron().

Wipe all orphaned search records.

@todo: Move clean up of deleted records into DataHandler::delete() once there is a build query > alter query > execute query pattern implemented.

File

data_search/data_search.module, line 39

Code

function data_search_cron() {
  $tables = data_search_get_tables();
  foreach ($tables as $table) {
    data_search_wipe($table);
  }
}