Main theme for SuiteDesk
This commit is contained in:
parent
8cf3c56044
commit
42540d1310
185 changed files with 17597 additions and 0 deletions
43
themes/zuitedesk/theme-settings.php
Normal file
43
themes/zuitedesk/theme-settings.php
Normal file
|
@ -0,0 +1,43 @@
|
|||
<?php
|
||||
// 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 zuitedesk_settings($saved_settings) {
|
||||
|
||||
// Get the default values from the .info file.
|
||||
$defaults = zen_theme_get_default_settings('zuitedesk');
|
||||
|
||||
// Merge the saved variables and their default values.
|
||||
$settings = array_merge($defaults, $saved_settings);
|
||||
|
||||
/*
|
||||
* Create the form using Forms API: http://api.drupal.org/api/6
|
||||
*/
|
||||
$form = array();
|
||||
/* -- Delete this line if you want to use this setting
|
||||
$form['zuitedesk_example'] = array(
|
||||
'#type' => 'checkbox',
|
||||
'#title' => t('Use this sample setting'),
|
||||
'#default_value' => $settings['zuitedesk_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.
|
||||
unset($form['themedev']['zen_layout']); // We don't need to select the base stylesheet.
|
||||
|
||||
// Return the form
|
||||
return $form;
|
||||
}
|
Reference in a new issue