You are here

function advagg_admin_clear_all_files_button in Advanced CSS/JS Aggregation 7.2

Clear out all advagg aggregated files.

Related topics

1 string reference to 'advagg_admin_clear_all_files_button'
advagg_admin_operations_form in ./advagg.admin.inc
Form builder; Do advagg operations.

File

./advagg.admin.inc, line 1652
Admin page callbacks for the advanced CSS/JS aggregation module.

Code

function advagg_admin_clear_all_files_button() {

  // Run the command.
  module_load_include('inc', 'advagg', 'advagg.cache');
  list($css_files, $js_files) = advagg_remove_all_aggregated_files();

  // Report back the results.
  drupal_set_message(t('All AdvAgg files have been deleted. %css_count CSS files and %js_count JS files have been removed.', array(
    '%css_count' => count($css_files),
    '%js_count' => count($js_files),
  )));
}