function advagg_admin_master_reset in Advanced CSS/JS Aggregation 7
Same name and namespace in other branches
- 6 advagg.admin.inc \advagg_admin_master_reset()
Master reset button.
File
- includes/
admin.inc, line 550 - Admin page callbacks for the advanced CSS/JS aggregation module.
Code
function advagg_admin_master_reset() {
cache_clear_all('*', 'cache_advagg', TRUE);
cache_clear_all('*', 'cache_advagg_files_data', TRUE);
cache_clear_all('*', 'cache_advagg_bundle_reuse', TRUE);
db_query("TRUNCATE TABLE {advagg_files}");
db_query("TRUNCATE TABLE {advagg_bundles}");
module_invoke_all('advagg_master_reset');
list($css_path, $js_path) = advagg_get_root_files_dir();
file_scan_directory($css_path, '/.*/', array(
'callback' => 'file_unmanaged_delete',
));
file_scan_directory($js_path, '/.*/', array(
'callback' => 'file_unmanaged_delete',
));
drupal_set_message(t('Advanced CSS/JS Aggregation has been reset.'));
}