function progress_cron in Progress 7
Same name and namespace in other branches
- 8 progress.module \progress_cron()
- 6 progress.module \progress_cron()
Implements hook_cron().
Clean up finished progresses
File
- ./
progress.module, line 226 - Progress framework for keeping track of progresses
Code
function progress_cron() {
return db_delete('progress')
->condition('end_stamp', 0, '>')
->condition('end_stamp', time() - variable_get('progress_age', PROGRESS_AGE), '<')
->execute();
}