You are here

function friendly_register_cron in Friendly Register 7

Implements hook_cron().

File

./friendly_register.module, line 46
Primary logic for the friendly_register module that allows for checking of username and email.

Code

function friendly_register_cron() {
  $expires = REQUEST_TIME - FRIENDLY_REGISTER_EXPIRES;
  db_delete('friendly_register_flood')
    ->condition('lasthit', $expires, '<=')
    ->execute();
}