From 9fd71523e0997fe9a736670982c303d1f77bf083 Mon Sep 17 00:00:00 2001 From: Igor Biki <ibiki@uwaterloo.ca> Date: Wed, 19 May 2021 15:42:15 -0400 Subject: [PATCH] ISTWCMS-4579 Adding branding select to fdsu theme settings form. --- uw_fdsu_theme_resp.theme | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/uw_fdsu_theme_resp.theme b/uw_fdsu_theme_resp.theme index 685419e2..da6d9e4b 100644 --- a/uw_fdsu_theme_resp.theme +++ b/uw_fdsu_theme_resp.theme @@ -156,6 +156,25 @@ function uw_fdsu_theme_resp_form_system_theme_settings_alter(&$form, FormStateIn 'org-school' => t('Red (School)'), ], ]; + + // Fieldset for branding options. + $form['branding_options'] = [ + '#type' => 'details', + '#open' => TRUE, + '#title' => t('Branding options'), + ]; + + // Branding select option. + $form['branding_options']['wcms_branding_level'] = [ + '#type' => 'select', + '#options' => [ + 'full' => t('Full University branding'), + 'generic' => t('Generic with University wordmark'), + 'generic_wordmark' => t('Generic with University wordmark only'), + 'generic_barebones' => t('Fully generic'), + ], + '#default_value' => theme_get_setting('wcms_branding_level', 'uw_fdsu_theme_resp') ?: 'full', + ]; } /** -- GitLab