function contact_save_cron in Contact Save 7
Implements hook_cron().
Deletes old messages.
File
- ./
contact_save.module, line 44 - Contact save module logic.
Code
function contact_save_cron() {
$live_time = variable_get('contact_save_live_time', 0);
if ($live_time) {
db_delete('contact_save')
->condition('created', REQUEST_TIME - $live_time, '<')
->execute();
}
}