function minifyjs_batch_finished in Minify JS 7
Same name and namespace in other branches
- 8.2 minifyjs.module \minifyjs_batch_finished()
- 8 minifyjs.module \minifyjs_batch_finished()
Helper function for batch, batch finished.
1 string reference to 'minifyjs_batch_finished'
- minifyjs_manage_javascript_files_form_submit in ./
minifyjs.admin.inc - Helper function for form table (form submit):
File
- ./
minifyjs.admin.inc, line 179 - Hook and helper functions for the Minify JS module.
Code
function minifyjs_batch_finished($success, $results, $operations) {
// Output successful operations.
if (isset($results['success'])) {
if (count($results['success'])) {
foreach ($results['success'] as $success) {
drupal_set_message($success);
}
}
}
// Output errors.
if (isset($results['errors'])) {
if (count($results['errors'])) {
foreach ($results['errors'] as $error) {
drupal_set_message($error, 'error');
}
}
}
// Clear the cache so this change will be reflected in
// minifyjs_load_all_files()
cache_clear_all(MINIFYJS_CACHE_CID, 'cache');
drupal_goto('admin/config/development/performance/js');
}