function tfa_cron in Two-factor Authentication (TFA) 6
Same name and namespace in other branches
- 7 tfa.module \tfa_cron()
Implements hook_cron().
File
- ./
tfa.module, line 64 - Two-factor authentication for Drupal.
Code
function tfa_cron() {
// Remove entries from the tfa table that are older than 1 day.
db_query('DELETE FROM {tfa} WHERE created < %d', time() - 86400);
}