1
<?php
2
// Include the definition of zen_settings() and zen_theme_get_default_settings().
3
include_once './' . drupal_get_path('theme', 'zen') . '/theme-settings.php';
4
5
6
/**
7
 * Implementation of THEMEHOOK_settings() function.
8
 *
9
 * @param $saved_settings
10
 *   An array of saved settings for this theme.
11
 * @return
12
 *   A form array.
13
 */
14
function hr_juarez_settings($saved_settings) {
15
16
  // Get the default values from the .info file.
17
  $defaults = zen_theme_get_default_settings('hr-juarez');
18
19
  // Merge the saved variables and their default values.
20
  $settings = array_merge($defaults, $saved_settings);
21
22
  /*
23
   * Create the form using Forms API: http://api.drupal.org/api/6
24
   */
25
  $form = array();
26
  /* -- Delete this line if you want to use this setting
27
  $form['hr_juarez_example'] = array(
28
    '#type'          => 'checkbox',
29
    '#title'         => t('Use this sample setting'),
30
    '#default_value' => $settings['hr_juarez_example'],
31
    '#description'   => t("This option doesn't do anything; it's just an example."),
32
  );
33
  // */
34
35
  // Add the base theme's settings.
36
  $form += zen_settings($saved_settings, $defaults);
37
38
  // Remove some of the base theme's settings.
39
  unset($form['themedev']['zen_layout']); // We don't need to select the base stylesheet.
40
41
  // Return the form
42
  return $form;
43
}