theme-settings.php

Same filename in this branch
  1. 7.x modules/simpletest/tests/themes/test_theme/theme-settings.php
Same filename in other branches
  1. 9 core/themes/olivero/theme-settings.php
  2. 9 core/modules/system/tests/themes/test_theme_settings/theme-settings.php
  3. 8.9.x core/modules/system/tests/themes/test_theme_settings/theme-settings.php
  4. 10 core/themes/olivero/theme-settings.php
  5. 10 core/modules/system/tests/themes/test_theme_settings/theme-settings.php
  6. 11.x core/themes/olivero/theme-settings.php
  7. 11.x core/modules/system/tests/themes/test_theme_settings/theme-settings.php

Theme setting callbacks for the garland theme.

File

themes/garland/theme-settings.php

View source
<?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,
    );
}

Functions

Title Deprecated Summary
garland_form_system_theme_settings_alter Implements hook_form_FORM_ID_alter().

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.