function drush_advagg_clear_all_files in Advanced CSS/JS Aggregation 7.2
Same name and namespace in other branches
- 8.4 advagg.drush.inc \drush_advagg_clear_all_files()
- 8.2 advagg.drush.inc \drush_advagg_clear_all_files()
- 8.3 advagg.drush.inc \drush_advagg_clear_all_files()
Callback function for drush advagg-clear-all-files.
Callback is called by using drush_hook_command() where hook is the name of the module (advagg) and command is the name of the Drush command with all "-" characters converted to "_" characters.
File
- ./
advagg.drush.inc, line 104 - Drush commands for Advanced CSS/JS Aggregation.
Code
function drush_advagg_clear_all_files() {
// Clear out the cache.
drush_advagg_clear_db_cache();
// Run the command.
module_load_include('inc', 'advagg', 'advagg.cache');
list($css_files, $js_files) = advagg_remove_all_aggregated_files();
// Report back the results.
drush_log(dt('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),
)), 'ok');
}