Issue #1905006: OCD-required replacement of tab characters with 2 spaces.
[project/zen.git] / STARTERKIT / theme-settings.php
1 <?php
2 /**
3 * Implementation of THEMEHOOK_settings() function.
4 *
5 * @param $saved_settings
6 * An array of saved settings for this theme.
7 * @return
8 * A form array.
9 */
10 function STARTERKIT_settings($saved_settings) {
11
12 /*
13 * The default values for the theme variables. Make sure $defaults exactly
14 * matches the $defaults in the theme-settings-init.php file.
15 */
16 $defaults = array(
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,
24 );
25
26 // Merge the saved variables and their default values
27 $settings = array_merge($defaults, $saved_settings);
28
29 /*
30 * Create the form using Forms API: http://api.drupal.org/api/5
31 */
32 $form = array();
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."),
39 );
40 // */
41
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);
45
46 // Remove some of the base theme's settings.
47 unset($form['themedev']['zen_layout']); // We don't need to select the base stylesheet.
48
49 // Return the form
50 return $form;
51 }