0
|
1 <?php
|
|
2
|
|
3 /**
|
|
4 * @file
|
|
5 * Theme setting callbacks for the garland theme.
|
|
6 */
|
|
7
|
|
8 /**
|
|
9 * Implements hook_form_FORM_ID_alter().
|
|
10 *
|
|
11 * @param $form
|
|
12 * The form.
|
|
13 * @param $form_state
|
|
14 * The form state.
|
|
15 */
|
|
16 function mpiwgDev_form_system_theme_settings_alter(&$form, &$form_state) {
|
|
17
|
|
18 $form['mpiwg_logo_link'] = array(
|
|
19 '#type' => 'textfield',
|
|
20 '#title' => t('Link behind Logo'),
|
|
21
|
|
22 '#default_value' => theme_get_setting('mpiwg_logo_link'),
|
|
23 '#description' => t('Specify the link behing the logo.'),
|
|
24 // Place this above the color scheme options.
|
|
25 '#weight' => -2,
|
|
26 );
|
|
27
|
|
28 $form['mpiwg_login_in_main_menu'] = array(
|
|
29 '#type' => 'checkbox',
|
|
30 '#title' => t('Login link in main menu?'),
|
|
31 '#default_value' => theme_get_setting('mpiwg_login_in_main_menu'),
|
|
32 '#description' => t('Puts a login link in the main menu.'),
|
|
33 // Place this above the color scheme options.
|
|
34 '#weight' => -3,
|
|
35 );
|
|
36 }
|