diff options
author | Ctibor Brančík <ctibor@brancik.cz> | 2016-03-22 23:36:38 +0100 |
---|---|---|
committer | Ctibor Brančík <ctibor@brancik.cz> | 2016-03-22 23:36:38 +0100 |
commit | b8b6fd96e5d1c7e803550dd86d3c4ed577bba9d3 (patch) | |
tree | 64b5e1367d0d01efb0687ef7c27f27de02f866bb /sites/brdo.brontosaurus.cz.mrp/themes/mrp/theme-settings.php | |
parent | eb273b377f00fabe7b90791333f8e915a201c69a (diff) | |
download | brdo-b8b6fd96e5d1c7e803550dd86d3c4ed577bba9d3.tar.gz brdo-b8b6fd96e5d1c7e803550dd86d3c4ed577bba9d3.tar.bz2 |
Add theme for MRP site.
Diffstat (limited to 'sites/brdo.brontosaurus.cz.mrp/themes/mrp/theme-settings.php')
-rw-r--r-- | sites/brdo.brontosaurus.cz.mrp/themes/mrp/theme-settings.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/sites/brdo.brontosaurus.cz.mrp/themes/mrp/theme-settings.php b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/theme-settings.php new file mode 100644 index 000000000..1cfae8b88 --- /dev/null +++ b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/theme-settings.php @@ -0,0 +1,33 @@ +<?php +/** + * Implements hook_form_system_theme_settings_alter(). + * + * @param $form + * Nested array of form elements that comprise the form. + * @param $form_state + * A keyed array containing the current state of the form. + */ +function STARTERKIT_form_system_theme_settings_alter(&$form, &$form_state, $form_id = NULL) { + // Work-around for a core bug affecting admin themes. See issue #943212. + if (isset($form_id)) { + return; + } + + // Create the form using Forms API: http://api.drupal.org/api/7 + + /* -- Delete this line if you want to use this setting + $form['STARTERKIT_example'] = array( + '#type' => 'checkbox', + '#title' => t('STARTERKIT sample setting'), + '#default_value' => theme_get_setting('STARTERKIT_example'), + '#description' => t("This option doesn't do anything; it's just an example."), + ); + // */ + + // Remove some of the base theme's settings. + /* -- Delete this line if you want to turn off this setting. + unset($form['themedev']['zen_wireframes']); // We don't need to toggle wireframes on this site. + // */ + + // We are editing the $form in place, so we don't need to return anything. +} |