You are here

function spam_cron in Spam 5.3

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

Drupal _cron hook.

File

./spam.module, line 406

Code

function spam_cron() {

  // Delete expired logs.
  if ($flush = variable_get('spam_log_delete', 259200)) {
    db_query('DELETE FROM {spam_log} WHERE timestamp < %d', time() - $flush);
  }
}