Mercurial > hg > mpiwgDrupalTheme
diff theme-settings.php @ 0:65b7937bab7b
intertial
author | dwinter |
---|---|
date | Fri, 20 Jun 2014 09:39:25 +0200 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/theme-settings.php Fri Jun 20 09:39:25 2014 +0200 @@ -0,0 +1,36 @@ +<?php + +/** + * @file + * Theme setting callbacks for the garland theme. + */ + +/** + * Implements hook_form_FORM_ID_alter(). + * + * @param $form + * The form. + * @param $form_state + * The form state. + */ +function mpiwg_form_system_theme_settings_alter(&$form, &$form_state) { + + $form['mpiwg_logo_link'] = array( + '#type' => 'textfield', + '#title' => t('Link behind Logo'), + + '#default_value' => theme_get_setting('mpiwg_logo_link'), + '#description' => t('Specify the link behing the logo.'), + // Place this above the color scheme options. + '#weight' => -2, + ); + + $form['mpiwg_login_in_main_menu'] = array( + '#type' => 'checkbox', + '#title' => t('Login link in main menu?'), + '#default_value' => theme_get_setting('mpiwg_login_in_main_menu'), + '#description' => t('Puts a login link in the main menu.'), + // Place this above the color scheme options. + '#weight' => -3, + ); +}