Mercurial > hg > MPIWG-drupal-modules
view 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 |
line wrap: on
line source
<?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 mpiwgDev_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, ); }