Skip to content
Snippets Groups Projects
Commit 7066d632 authored by Lily Yan's avatar Lily Yan
Browse files

Change to wcms_search_show_local

parent 964ef1cf
No related branches found
No related tags found
1 merge request!110ISTWCMS-6545 Create search options
......@@ -167,7 +167,7 @@ function uw_fdsu_theme_resp_preprocess_region(&$variables) {
$region = $variables['elements']['#region'];
// Set 'search_local' variable if not set.
if (!isset($variables['search_local'])) {
$variables['search_local'] = theme_get_setting('search_show_local', 'uw_fdsu_theme_resp');
$variables['search_show_local'] = theme_get_setting('wcms_search_show_local', 'uw_fdsu_theme_resp');
}
// Variables that we want to have access to regardless of region.
$variables['branding_level'] = theme_get_setting('wcms_branding_level', 'uw_fdsu_theme_resp') ? theme_get_setting('wcms_branding_level', 'uw_fdsu_theme_resp') : 'full';
......@@ -260,10 +260,10 @@ function uw_fdsu_theme_resp_form_system_theme_settings_alter(&$form, FormStateIn
];
// Search options checkbox field.
$form['search_options']['search_show_local'] = [
$form['search_options']['wcms_search_show_local'] = [
'#type' => 'checkbox',
'#title' => t("Show the 'on this site' search option"),
'#default_value' => theme_get_setting('search_show_local', 'uw_fdsu_theme_resp') ?? TRUE,
'#default_value' => theme_get_setting('wcms_search_show_local', 'uw_fdsu_theme_resp') ?? TRUE,
];
// Fieldset for colour scheme.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment