You are here

function auto_login_url_cron in Auto Login URL 7

Same name and namespace in other branches
  1. 8 auto_login_url.module \auto_login_url_cron()
  2. 2.x auto_login_url.module \auto_login_url_cron()

Implements hook_cron().

File

./auto_login_url.module, line 500
Main file for auto_login_url module.

Code

function auto_login_url_cron() {

  // Delete over one month auto logins.
  db_delete('auto_login_url')
    ->condition('timestamp', time() - variable_get('auto_login_url_expiration', 2592000), '<=')
    ->execute();
}