'admin/settings/jquery_ui', 'title' => t('jQuery UI'), 'description' => t('Configure settings for jQuery UI module.'), 'callback' => 'drupal_get_form', 'callback arguments' => array('jquery_ui_admin_settings'), 'access' => user_access('administer 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() { $version = 0; if (file_exists(JQUERY_UI_PATH . '/version.txt')) { $version = file_get_contents(JQUERY_UI_PATH . '/version.txt'); } return $version; }