rorschach
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Functions to support Rorschach theme settings.
|
||||
*/
|
||||
|
||||
use Drupal\Core\Form\FormStateInterface;
|
||||
|
||||
/**
|
||||
* Implements hook_form_FORM_ID_alter() for system_theme_settings.
|
||||
*/
|
||||
function rorschach_form_system_theme_settings_alter(&$form, FormStateInterface $form_state) {
|
||||
$form['rorschach_settings']['rorschach_utilities'] = [
|
||||
'#type' => 'fieldset',
|
||||
'#title' => t('Rorschach Utilities'),
|
||||
];
|
||||
$form['rorschach_settings']['rorschach_utilities']['mobile_menu_all_widths'] = [
|
||||
'#type' => 'checkbox',
|
||||
'#title' => t('Enable mobile menu at all widths'),
|
||||
'#default_value' => theme_get_setting('mobile_menu_all_widths'),
|
||||
'#description' => t('Enables the mobile menu toggle at all widths.'),
|
||||
];
|
||||
$form['rorschach_settings']['rorschach_utilities']['site_branding_bg_color'] = [
|
||||
'#type' => 'select',
|
||||
'#title' => t('Header site branding background color'),
|
||||
'#options' => [
|
||||
'default' => t('Primary Branding Color'),
|
||||
'gray' => t('Gray'),
|
||||
'white' => t('White'),
|
||||
],
|
||||
'#default_value' => theme_get_setting('site_branding_bg_color'),
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user