You are here

function minifyjs_create_minified_file in Minify JS 7

Helper function to create the minified file:

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

File

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

Code

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