Index: jquery_ui.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/jquery_ui/jquery_ui.module,v
retrieving revision 1.4
diff -u -p -r1.4 jquery_ui.module
--- jquery_ui.module	21 Jun 2008 22:58:43 -0000	1.4
+++ jquery_ui.module	22 Jun 2008 20:06:36 -0000
@@ -24,13 +24,11 @@ define('JQUERY_UI_PATH', drupal_get_path
  * @param $files
  *   An array of what additional files (other than UI core) should be loaded
  *   on the page, or a string with a single file name.
- * @param $type
- *   Compression type: leave empty to use admin setting.
- *   Possible values: 'minified', 'packed', 'none'
  */
-function jquery_ui_add($files = array(), $type = NULL) {
+function jquery_ui_add($files = array()) {
   static $loaded_files, $ui_core, $effects_core;
   $jquery_ui_path = JQUERY_UI_PATH . '/ui';
+  $compression = variable_get('jquery_update_compression_type', 'mini');
 
   // Convert file to an array if it's not one already, to compensate for
   // lazy developers. ;)
@@ -38,12 +36,6 @@ function jquery_ui_add($files = array(),
     $files = array($files);
   }
 
-  // If a type wasn't specified, then default to whatever was specified in the
-  // settings page.
-  if (is_null($type)) {
-    $type = variable_get('jquery_ui_compression_type', 'minified');
-  }
-
   // If core hasn't been added yet, add it.
   if (!isset($ui_core)) {
     $ui_core = TRUE;
@@ -60,14 +52,14 @@ function jquery_ui_add($files = array(),
   
     // Load other files.
     if (!isset($loaded_files[$file])) {
-      switch ($type) {
+      switch ($compression) {
         case 'none':
           $file_path = "$file.js";
           break;
-        case 'packed':
+        case 'pack':
           $file_path = "packed/$file.packed.js";
           break;
-        case 'minified':
+        case 'mini':
         default:
           $file_path = "minified/$file.min.js";
           break;
@@ -80,36 +72,6 @@ function jquery_ui_add($files = array(),
 }
 
 /**
- * Implementation of hook_menu().
- */
-function jquery_ui_menu() {
-  $items['admin/settings/jquery_ui'] = array(
-    'title' => 'jQuery UI',
-    'description' => 'Configure settings for jQuery UI module.',
-    'page callback' => 'drupal_get_form',
-    'page arguments' => array('jquery_ui_admin_settings'),
-    'access arguments' => array('access site configuration'),
-  );
-
-  return $items;
-}
-
-/**
- * Admin settings form.
- */
-function jquery_ui_admin_settings() {
-  $form['jquery_ui_compression_type'] = array(
-    '#type' => 'radios',
-    '#title' => t('jQuery UI compression type'),
-    '#options' => drupal_map_assoc(array('packed', 'minified', 'none')),
-    '#default_value' => variable_get('jquery_ui_compression_type', 'minified'),
-    '#description' => t("Type of compression to use. 'Packed' uses Dean Edward's packer to make the file size as small as possible, but may require more browser processing. 'Minified' takes out all comments, whitespace, etc. to reduce the file size to a lesser degree, maintaining performance. 'None' leaves the full source intact."),
-  );
-
-  return system_settings_form($form);
-}
-
-/**
  * Return the version of jQuery UI installed.
  */
 function jquery_ui_get_version() {
