'jQuery UI', 'description' => 'Configure settings for jQuery UI module.', 'page callback' => 'drupal_get_form', 'page arguments' => array('jquery_ui_settings'), 'access arguments' => array('administer site configuration'), ); return $items; } function jquery_ui_settings() { $theme_path = JQUERY_UI_PATH . '/themes'; $files = file_scan_directory($theme_path, '.*', array('.', '..', 'CVS', '.DS_Store'), 0, FALSE, 'basename'); $options = array(); foreach ($files as $name => $file) { $options[$name] = $name; } $form['jquery_ui_theme'] = array( '#type' => 'radios', '#title' => t('Choose jQuery UI theme'), '#default_value' => variable_get('jquery_ui_theme', 'base'), '#options' => $options, ); return system_settings_form($form); }