You are here

function styleswitcher_admin in Style Switcher 7

Same name and namespace in other branches
  1. 6.2 styleswitcher.admin.inc \styleswitcher_admin()
  2. 7.2 styleswitcher.admin.inc \styleswitcher_admin()

Add a settings form

1 string reference to 'styleswitcher_admin'
styleswitcher_menu in ./styleswitcher.module
Implements hook_menu().

File

./styleswitcher.module, line 79
Framework for themes to easily add stylesheet switching functionality.

Code

function styleswitcher_admin() {
  $form = array();
  $form['styleswitcher_enable_overlay'] = array(
    '#type' => 'checkbox',
    '#title' => t('Enable Overlay'),
    '#default_value' => variable_get('styleswitcher_enable_overlay', 1),
    '#description' => t("Enable the overlay and fade when switching stylesheets"),
    '#required' => FALSE,
  );
  return system_settings_form($form);
}