You are here

function advagg_js_compress_check_callback in Advanced CSS/JS Aggregation 6

Same name and namespace in other branches
  1. 7 advagg_js_compress/advagg_js_compress.install \advagg_js_compress_check_callback()

Check to see if the CSS/JS generator is working.

1 call to advagg_js_compress_check_callback()
advagg_js_compress_requirements in advagg_js_compress/advagg_js_compress.install
Implementation of hook_requirements().

File

advagg_js_compress/advagg_js_compress.install, line 116
Handles AdvAgg JS compress installation and upgrade tasks.

Code

function advagg_js_compress_check_callback() {
  $filename = drupal_get_path('module', 'advagg_js_compress') . '/jquery.form.js';
  $files_to_test = array();
  $files_to_test[] = array(
    'md5' => md5($filename),
    'filename' => $filename,
  );
  $compressible = advagg_js_compress_test_compression($files_to_test);
  return $compressible;
}