Delete leftover temp files.
Sujets associés
1 string reference to 'advagg_admin_cleanup_temp_files_button'
- advagg_admin_operations_form dans ./
advagg.admin.inc - Form builder; Do advagg operations.
Fichier
-
./
advagg.admin.inc, line 1853
Code
function advagg_admin_cleanup_temp_files_button() {
module_load_include('inc', 'advagg', 'advagg.cache');
// Delete orphaned/expired advagg locks from the semaphore database table.
$count = advagg_remove_temp_files();
if (empty($count)) {
drupal_set_message(t('No leftover temp files found. Nothing was deleted.'));
}
else {
drupal_set_message(format_plural($count, '1 leftover temp files from advagg was found. A total of 1 temp files was removed.', 'Some leftover temp files from advagg were found. A total of @count temp files were removed.'));
}
}