public static function UserRestrictions::deleteExpired in User restrictions 7
1 call to UserRestrictions::deleteExpired()
- user_restrictions_cron in ./
user_restrictions.module - Implements hook_cron().
File
- ./
user_restrictions.classes.inc, line 141 - Contains the classes used by the User restrictions module.
Class
- UserRestrictions
- The main class used by the User Restrictions module.
Code
public static function deleteExpired() {
return db_delete('user_restrictions')
->condition(db_and()
->condition('expire', REQUEST_TIME, '<=')
->condition('expire', 0, '>'))
->execute();
}