--- F:/Documents and Settings/justin/Desktop/Main/Software/_Staging_Area/D6.x/javascript_aggregator-6.x-1.x-dev.tar/javascript_aggregator/javascript_aggregator.module Wed Apr 14 10:31:42 2010 +++ F:/EngNet - Justin/Backups/civilwatch.eng.co.za/2010-08-12/public_html/sites/all/modules/javascript_aggregator/javascript_aggregator.module Thu Aug 12 13:01:00 2010 @@ -1,6 +1,10 @@ 'checkbox', - '#title' => t('GZip JavaScript'), - '#description' => t('Once minified, optionally GZip the aggregated JavaScript file to dramatically decrease its size.', array('@gzip' => 'http://en.wikipedia.org/wiki/Gzip')), - '#default_value' => variable_get('javascript_aggregator_gzip', FALSE), + $form['bandwidth_optimizations']['javascript_aggregator_type'] = array( + '#type' => 'radios', + '#title' => t('Type of JavaScript compression'), + '#description' => t('Optionally Minify and/or GZip the aggregated CSS file to dramatically decrease its size.'), + '#default_value' => variable_get('javascript_aggregator_type', JAVASCRIPT_AGGREGATOR_MIN), + '#options' => array(JAVASCRIPT_AGGREGATOR_MIN => t('Minify'), JAVASCRIPT_AGGREGATOR_GZIP => t('GZip') , JAVASCRIPT_AGGREGATOR_MIN_GZIP => t('Minify and GZip')), '#weight' => 3, ); $form['bandwidth_optimizations']['javascript_aggregator_no_htaccess'] = array( @@ -58,7 +63,7 @@ } // Now tack it on at the end so it runs after everything else. $theme_registry['page']['preprocess functions'][] = 'javascript_aggregator_preprocess_page'; - } + } } /** @@ -78,7 +83,7 @@ */ function phptemplate_closure($main = 0) { $footer = module_invoke_all('footer', $main); - + $js_footer = drupal_get_js('footer'); // Only do this for pages that have JavaScript on them. if (!empty($js_footer)) { @@ -100,42 +105,42 @@ $pattern = "!(