You are here

function minifyjs_operations in Minify JS 7

Helper function to return the operations available for the file.

1 call to minifyjs_operations()
minifyjs_manage_javascript_files_form in ./minifyjs.admin.inc
Helper function for form table:

File

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

Code

function minifyjs_operations($file) {
  $operations = array();
  if (empty($file->minified_uri)) {
    $operations[] = l(t('Minify'), 'admin/config/development/performance/js/' . $file->fid . '/minify');
  }
  else {
    $operations[] = l(t('Re-Minify'), 'admin/config/development/performance/js/' . $file->fid . '/minify');
    $operations[] = l(t('Restore'), 'admin/config/development/performance/js/' . $file->fid . '/restore');
  }
  return implode(' | ', $operations);
}