annotate theme-settings.php @ 2:3d467de87492 default tip

remove some first-child rules for headers in lists.
author root@drupal-mpiwg.rz-berlin.mpg.de
date Fri, 20 Jun 2014 12:12:17 +0200
parents 65b7937bab7b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
65b7937bab7b intertial
dwinter
parents:
diff changeset
1 <?php
65b7937bab7b intertial
dwinter
parents:
diff changeset
2
65b7937bab7b intertial
dwinter
parents:
diff changeset
3 /**
65b7937bab7b intertial
dwinter
parents:
diff changeset
4 * @file
65b7937bab7b intertial
dwinter
parents:
diff changeset
5 * Theme setting callbacks for the garland theme.
65b7937bab7b intertial
dwinter
parents:
diff changeset
6 */
65b7937bab7b intertial
dwinter
parents:
diff changeset
7
65b7937bab7b intertial
dwinter
parents:
diff changeset
8 /**
65b7937bab7b intertial
dwinter
parents:
diff changeset
9 * Implements hook_form_FORM_ID_alter().
65b7937bab7b intertial
dwinter
parents:
diff changeset
10 *
65b7937bab7b intertial
dwinter
parents:
diff changeset
11 * @param $form
65b7937bab7b intertial
dwinter
parents:
diff changeset
12 * The form.
65b7937bab7b intertial
dwinter
parents:
diff changeset
13 * @param $form_state
65b7937bab7b intertial
dwinter
parents:
diff changeset
14 * The form state.
65b7937bab7b intertial
dwinter
parents:
diff changeset
15 */
65b7937bab7b intertial
dwinter
parents:
diff changeset
16 function mpiwg_form_system_theme_settings_alter(&$form, &$form_state) {
65b7937bab7b intertial
dwinter
parents:
diff changeset
17
65b7937bab7b intertial
dwinter
parents:
diff changeset
18 $form['mpiwg_logo_link'] = array(
65b7937bab7b intertial
dwinter
parents:
diff changeset
19 '#type' => 'textfield',
65b7937bab7b intertial
dwinter
parents:
diff changeset
20 '#title' => t('Link behind Logo'),
65b7937bab7b intertial
dwinter
parents:
diff changeset
21
65b7937bab7b intertial
dwinter
parents:
diff changeset
22 '#default_value' => theme_get_setting('mpiwg_logo_link'),
65b7937bab7b intertial
dwinter
parents:
diff changeset
23 '#description' => t('Specify the link behing the logo.'),
65b7937bab7b intertial
dwinter
parents:
diff changeset
24 // Place this above the color scheme options.
65b7937bab7b intertial
dwinter
parents:
diff changeset
25 '#weight' => -2,
65b7937bab7b intertial
dwinter
parents:
diff changeset
26 );
65b7937bab7b intertial
dwinter
parents:
diff changeset
27
65b7937bab7b intertial
dwinter
parents:
diff changeset
28 $form['mpiwg_login_in_main_menu'] = array(
65b7937bab7b intertial
dwinter
parents:
diff changeset
29 '#type' => 'checkbox',
65b7937bab7b intertial
dwinter
parents:
diff changeset
30 '#title' => t('Login link in main menu?'),
65b7937bab7b intertial
dwinter
parents:
diff changeset
31 '#default_value' => theme_get_setting('mpiwg_login_in_main_menu'),
65b7937bab7b intertial
dwinter
parents:
diff changeset
32 '#description' => t('Puts a login link in the main menu.'),
65b7937bab7b intertial
dwinter
parents:
diff changeset
33 // Place this above the color scheme options.
65b7937bab7b intertial
dwinter
parents:
diff changeset
34 '#weight' => -3,
65b7937bab7b intertial
dwinter
parents:
diff changeset
35 );
65b7937bab7b intertial
dwinter
parents:
diff changeset
36 }