root / drupal7 / sites / all / themes / bootstrap / theme-settings.php @ 87dbc3bf
1 | 87dbc3bf | Benjamin Luce | <?php
|
---|---|---|---|
2 | /**
|
||
3 | * @file
|
||
4 | * theme-settings.php
|
||
5 | *
|
||
6 | * Provides theme settings for Bootstrap based themes when admin theme is not.
|
||
7 | *
|
||
8 | * @see theme/settings.inc
|
||
9 | */
|
||
10 | |||
11 | /**
|
||
12 | * Include common Bootstrap functions.
|
||
13 | */
|
||
14 | include_once dirname(__FILE__) . '/theme/common.inc'; |
||
15 | |||
16 | /**
|
||
17 | * Implements hook_form_FORM_ID_alter().
|
||
18 | */
|
||
19 | function bootstrap_form_system_theme_settings_alter(&$form, $form_state, $form_id = NULL) { |
||
20 | // Work-around for a core bug affecting admin themes.
|
||
21 | // @see https://drupal.org/node/943212
|
||
22 | if (isset($form_id)) { |
||
23 | return;
|
||
24 | } |
||
25 | // Include theme settings file.
|
||
26 | bootstrap_include('bootstrap', 'theme/settings.inc'); |
||
27 | // Alter theme settings form.
|
||
28 | _bootstrap_settings_form($form, $form_state); |
||
29 | } |