You are here

function progress_cron in Progress 6

Same name and namespace in other branches
  1. 8 progress.module \progress_cron()
  2. 7 progress.module \progress_cron()

Implementation of hook_cron().

Clean up finished progresses

File

./progress.module, line 175
Progress framework for keeping track of progresses

Code

function progress_cron() {
  db_query("DELETE FROM {progress} WHERE end_stamp > 0 AND end_stamp < %d", time() - variable_get('progress_age', PROGRESS_AGE));
}