$file) { $corefile = 'misc/ui/jquery.' . $file . '.min.js'; $javascript[$name]['js'][$corefile]['data'] = $jspath . 'jquery.' . $file . $min . '.js'; $javascript[$name]['version'] = '1.8.4'; } // TODO: Replace all of jQuery UI's CSS. // Replace the jQuery Cookie plugin. $javascript['cookie']['js']['misc/jquery.cookie.js']['data'] = $path . '/replace/ui/external/jquery.cookie.js'; $javascript['cookie']['version'] = '1.0'; } /** * Implementation of hook_form_FORM_ID_alter(). */ function jquery_update_form_system_performance_settings_alter(&$form, &$form_state) { $form['bandwidth_optimization']['jquery_update_compression_type'] = array( '#type' => 'radios', '#title' => t('jQuery compression level'), '#options' => array( 'min' => t('Production (minified)'), 'none' => t('Development (uncompressed)'), ), '#default_value' => variable_get('jquery_update_compression_type', 'min'), ); }