You are here

function minifyjs_restore_original_file in Minify JS 7

Helper function to restore the un-minified file:

  • admin/config/development/performance/js/%js/restore.
1 string reference to 'minifyjs_restore_original_file'
minifyjs_menu in ./minifyjs.module
Implements hook_menu()

File

./minifyjs.admin.inc, line 318
Hook and helper functions for the Minify JS module.

Code

function minifyjs_restore_original_file($fid) {
  $result = minifyjs_remove_minified_file($fid, TRUE);
  if ($result === TRUE) {
    drupal_set_message(t('File was restored successfully.'));
  }
  else {
    drupal_set_message($result, 'error');
  }
  drupal_goto('admin/config/development/performance/js');
}