Project

General

Profile

Paste
Download (753 Bytes) Statistics
| Branch: | Revision:

root / drupal7 / themes / garland / theme-settings.php @ 27e02aed

1
<?php
2

    
3
/**
4
 * @file
5
 * Theme setting callbacks for the garland theme.
6
 */
7

    
8
/**
9
 * Implements hook_form_FORM_ID_alter().
10
 *
11
 * @param $form
12
 *   The form.
13
 * @param $form_state
14
 *   The form state.
15
 */
16
function garland_form_system_theme_settings_alter(&$form, &$form_state) {
17

    
18
  $form['garland_width'] = array(
19
    '#type' => 'radios',
20
    '#title' => t('Content width'),
21
    '#options' => array(
22
      'fluid' => t('Fluid width'),
23
      'fixed' => t('Fixed width'),
24
    ),
25
    '#default_value' => theme_get_setting('garland_width'),
26
    '#description' => t('Specify whether the content will wrap to a fixed width or will fluidly expand to the width of the browser window.'),
27
    // Place this above the color scheme options.
28
    '#weight' => -2,
29
  );
30
}