forked from misd-service-development/drupal-cambridge-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme-settings.php
33 lines (31 loc) · 956 Bytes
/
theme-settings.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/**
* Implements hook_form_system_theme_settings_alter().
*/
function cambridge_theme_form_system_theme_settings_alter(&$form, $form_state) {
$form['cambridge'] = array(
'#type' => 'fieldset',
'#title' => t('Theme settings'),
'#weight' => 0,
);
$form['cambridge']['colour_scheme'] = array(
'#type' => 'select',
'#title' => t('Colour scheme'),
'#options' => array(
1 => 'Blue',
2 => 'Turquoise',
3 => 'Purple',
4 => 'Green',
5 => 'Orange',
6 => 'Red',
7 => 'Gray',
),
'#default_value' => theme_get_setting('colour_scheme'),
);
// Hide reference to non-existent default logo.
$form['logo']['default_logo']['#type'] = 'hidden';
$form['logo']['default_logo']['#default_value'] = 0;
unset($form['logo']['settings']['#states']);
$form['logo']['settings']['logo_path']['#description'] =
t('The path to the file you would like to use as your logo file.');
}