function user_delete_backup_remove_expired in User Delete 6
Same name and namespace in other branches
- 5 user_delete.module \user_delete_backup_remove_expired()
Check if a folder is expired and delete
1 string reference to 'user_delete_backup_remove_expired'
- user_delete_backup_scan_expired in ./
user_delete.module - Scan for and delete expired files
File
- ./
user_delete.module, line 285 - User delete - Let users delete their own account.
Code
function user_delete_backup_remove_expired($filename) {
$period = variable_get('user_delete_backup_period', 60 * 60 * 24 * 7 * 12);
$created = filemtime($filename);
if ($created && time() >= $created + $period) {
user_delete_backup_remove_dir($filename);
}
}