function advagg_admin_master_reset in Advanced CSS/JS Aggregation 6
Same name and namespace in other branches
- 7 includes/admin.inc \advagg_admin_master_reset()
Master reset button.
1 string reference to 'advagg_admin_master_reset'
- advagg_admin_settings_form in ./
advagg.admin.inc - Form builder; Configure advagg settings.
File
- ./
advagg.admin.inc, line 525 - 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(
'.',
'..',
'CVS',
), 'file_delete', TRUE);
file_scan_directory($js_path, '.*', array(
'.',
'..',
'CVS',
), 'file_delete', TRUE);
drupal_set_message(t('Advanced CSS/JS Aggregation has been reset.'));
}