Mercurial > hg > mpiwgzen_wide
comparison theme-settings.php~ @ 0:a3750d724105 default tip
initital
author | Dirk Wintergruen <dwinter@mpiwg-berlin.mpg.de> |
---|---|
date | Tue, 02 Jun 2015 09:16:36 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:a3750d724105 |
---|---|
1 <?php | |
2 /** | |
3 * Implements hook_form_system_theme_settings_alter(). | |
4 * | |
5 * @param $form | |
6 * Nested array of form elements that comprise the form. | |
7 * @param $form_state | |
8 * A keyed array containing the current state of the form. | |
9 */ | |
10 function mpiwgzen-wide_form_system_theme_settings_alter(&$form, &$form_state, $form_id = NULL) { | |
11 // Work-around for a core bug affecting admin themes. See issue #943212. | |
12 if (isset($form_id)) { | |
13 return; | |
14 } | |
15 | |
16 // Create the form using Forms API: http://api.drupal.org/api/7 | |
17 | |
18 /* -- Delete this line if you want to use this setting | |
19 $form['mpiwgzen-wide_example'] = array( | |
20 '#type' => 'checkbox', | |
21 '#title' => t('mpiwgzen sample setting'), | |
22 '#default_value' => theme_get_setting('mpiwgzen-wide_example'), | |
23 '#description' => t("This option doesn't do anything; it's just an example."), | |
24 ); | |
25 // */ | |
26 | |
27 // Remove some of the base theme's settings. | |
28 /* -- Delete this line if you want to turn off this setting. | |
29 unset($form['themedev']['zen_wireframes']); // We don't need to toggle wireframes on this site. | |
30 // */ | |
31 | |
32 // We are editing the $form in place, so we don't need to return anything. | |
33 } |