summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.26/themes/garland/theme-settings.php
diff options
context:
space:
mode:
Diffstat (limited to 'kolab.org/www/drupal-7.26/themes/garland/theme-settings.php')
-rw-r--r--kolab.org/www/drupal-7.26/themes/garland/theme-settings.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/kolab.org/www/drupal-7.26/themes/garland/theme-settings.php b/kolab.org/www/drupal-7.26/themes/garland/theme-settings.php
new file mode 100644
index 0000000..2454341
--- /dev/null
+++ b/kolab.org/www/drupal-7.26/themes/garland/theme-settings.php
@@ -0,0 +1,30 @@
+<?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 garland_form_system_theme_settings_alter(&$form, &$form_state) {
+
+ $form['garland_width'] = array(
+ '#type' => 'radios',
+ '#title' => t('Content width'),
+ '#options' => array(
+ 'fluid' => t('Fluid width'),
+ 'fixed' => t('Fixed width'),
+ ),
+ '#default_value' => theme_get_setting('garland_width'),
+ '#description' => t('Specify whether the content will wrap to a fixed width or will fluidly expand to the width of the browser window.'),
+ // Place this above the color scheme options.
+ '#weight' => -2,
+ );
+}