3 * Implementation of THEMEHOOK_settings() function.
5 * @param $saved_settings
6 * An array of saved settings for this theme.
10 function STARTERKIT_settings($saved_settings) {
13 * The default values for the theme variables. Make sure $defaults exactly
14 * matches the $defaults in the theme-settings-init.php file.
17 'zen_block_editing' => 1,
18 'zen_breadcrumb' => 'yes',
19 'zen_breadcrumb_separator' => ' › ',
20 'zen_breadcrumb_home' => 1,
21 'zen_breadcrumb_trailing' => 1,
22 'zen_breadcrumb_title' => 0,
23 'zen_wireframes' => 0,
26 // Merge the saved variables and their default values
27 $settings = array_merge($defaults, $saved_settings);
30 * Create the form using Forms API: http://api.drupal.org/api/5
33 /* -- Delete this line if you want to use this setting
34 $form['subtheme_example'] = array(
35 '#type' => 'checkbox',
36 '#title' => t('Use this sample setting'),
37 '#default_value' => $settings['subtheme_example'],
38 '#description' => t("This option doesn't do anything; it's just an example."),
42 // Add the base theme's settings.
43 include_once
'./'.
drupal_get_path('theme', 'zen') .
'/theme-settings.php';
44 $form += zen_settings($saved_settings, $defaults);
46 // Remove some of the base theme's settings.
47 unset($form['themedev']['zen_layout']); // We don't need to select the base stylesheet.