Projet

Général

Profil

Paste
Télécharger (753 octets) Statistiques
| Branche: | Révision:

root / drupal7 / themes / garland / theme-settings.php @ 1afa1695

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
}