function services_keyauth_cron in Services 6.2
Same name and namespace in other branches
- 7 auth/services_keyauth/services_keyauth.module \services_keyauth_cron()
Implementation of hook_cron().
File
- auth/
services_keyauth/ services_keyauth.module, line 10 - Provides a key based validation system.
Code
function services_keyauth_cron() {
// Clear old values from the nonce table.
$expiry_time = time() - variable_get('services_key_expiry', 30);
db_query("DELETE FROM {services_timestamp_nonce}\n WHERE timestamp < '%s'", $expiry_time);
}