-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme-settings.php
27 lines (23 loc) · 935 Bytes
/
theme-settings.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
/**
* Implements hook_form_system_theme_settings_alter().
*
* @param $form
* Nested array of form elements that comprise the form.
* @param $form_state
* A keyed array containing the current state of the form.
*/
function copy_me_form_system_theme_settings_alter(&$form, &$form_state) {
// Create the form using Forms API: http://api.drupal.org/api/7
/* -- Delete this line if you want to use this setting
$form['copy_me_example'] = array(
'#type' => 'checkbox',
'#title' => t('copy_me sample setting'),
'#default_value' => theme_get_setting('copy_me_example'),
'#description' => t("This option doesn't do anything; it's just an example."),
);
// */
// Remove some of the base theme's settings.
unset($form['themedev']['zen_layout']); // We don't need to select the layout stylesheet.
// We are editing the $form in place, so we don't need to return anything.
}