You are here

function modr8_cron in modr8 7

Same name and namespace in other branches
  1. 5 modr8.module \modr8_cron()
  2. 6 modr8.module \modr8_cron()

Implements hook_cron().

Remove expired moderation log events.

File

./modr8.module, line 294
Easy dedicated content moderation

Code

function modr8_cron() {
  if ($log_clear = variable_get('modr8_log_clear', 0)) {
    db_delete('modr8_log')
      ->condition('timestamp', REQUEST_TIME - $log_clear, '<')
      ->execute();
  }
}