diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/mpiwgDev/theme-settings.php	Wed Jul 31 13:49:13 2013 +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 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,
+  );
+}