annotate sites/all/themes/mpiwgDev/theme-settings.php @ 0:015d06b10d37 default tip

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