theme-settings.php

Theme setting callbacks for the garland theme.

File

drupal-7.x/themes/garland/theme-settings.php
View source
  1. <?php
  2. /**
  3. * @file
  4. * Theme setting callbacks for the garland theme.
  5. */
  6. /**
  7. * Implements hook_form_FORM_ID_alter().
  8. *
  9. * @param $form
  10. * The form.
  11. * @param $form_state
  12. * The form state.
  13. */
  14. function garland_form_system_theme_settings_alter(&$form, &$form_state) {
  15. $form['garland_width'] = array(
  16. '#type' => 'radios',
  17. '#title' => t('Content width'),
  18. '#options' => array(
  19. 'fluid' => t('Fluid width'),
  20. 'fixed' => t('Fixed width'),
  21. ),
  22. '#default_value' => theme_get_setting('garland_width'),
  23. '#description' => t('Specify whether the content will wrap to a fixed width or will fluidly expand to the width of the browser window.'),
  24. // Place this above the color scheme options.
  25. '#weight' => -2,
  26. );
  27. }