- <?php
- // $Id: theme-settings.php,v 1.7 2008/09/11 09:36:50 johnalbin Exp $
-
- // Include the definition of zen_settings() and zen_theme_get_default_settings().
- include_once './' . drupal_get_path('theme', 'zen') . '/theme-settings.php';
-
-
- /**
- * Implementation of THEMEHOOK_settings() function.
- *
- * @param $saved_settings
- * An array of saved settings for this theme.
- * @return
- * A form array.
- */
- function kabuki_settings($saved_settings) {
-
- // Get the default values from the .info file.
- $defaults = zen_theme_get_default_settings('kabuki');
-
- // Merge the saved variables and their default values.
-
- /*
- * Create the form using Forms API: http://api.drupal.org/api/6
- */
- /* -- Delete this line if you want to use this setting
- $form['kabuki_example'] = array(
- '#type' => 'checkbox',
- '#title' => t('Use this sample setting'),
- '#default_value' => $settings['kabuki_example'],
- '#description' => t("This option doesn't do anything; it's just an example."),
- );
- // */
-
- // Add the base theme's settings.
- $form += zen_settings($saved_settings, $defaults);
-
- // Remove some of the base theme's settings.
-
- // Return the form
- return $form;
- }
コメント