Skip to content
Snippets Groups Projects
Commit 792f70c3 authored by Kevin Paxman's avatar Kevin Paxman
Browse files

ISTWCMS-5879: fix issue where dashboard settings weren't reing reflected, by...

ISTWCMS-5879: fix issue where dashboard settings weren't reing reflected, by only setting a default if there isn't already one
parent 15b9b38d
No related branches found
No related tags found
1 merge request!285ISTWCMS-5879 Create separator and spacing options for sections
......@@ -246,17 +246,25 @@ function uw_cfg_common_form_layout_builder_configure_section_alter(array &$form,
// Column separator group should not appear one column.
if (isset($form['layout_builder_style_column_separator'])) {
// Ensuring that none is selected for column separator by default.
$form['layout_builder_style_column_separator']['#default_value'] = 'uw_lbs_column_separator_none';
if (!isset($form['layout_builder_style_column_separator']['#default_value'])) {
$form['layout_builder_style_column_separator']['#default_value'] = 'uw_lbs_column_separator_none';
}
}
// Ensuring that none is selected for section separator by default.
$form['layout_builder_style_section_separator']['#default_value'] = 'uw_lbs_section_separator_none';
if (!isset($form['layout_builder_style_section_separator']['#default_value'])) {
$form['layout_builder_style_section_separator']['#default_value'] = 'uw_lbs_section_separator_none';
}
// Ensuring that default is selected for section spacing by default.
$form['layout_builder_style_section_spacing']['#default_value'] = 'uw_lbs_section_spacing_default';
if (!isset($form['layout_builder_style_section_spacing']['#default_value'])) {
$form['layout_builder_style_section_spacing']['#default_value'] = 'uw_lbs_section_spacing_default';
}
// Ensuring that the contained width is selected by default.
$form['layout_builder_style_default']['#default_value'] = 'uw_lbs_contained_width';
if (!isset($form['layout_builder_style_default']['#default_value'])) {
$form['layout_builder_style_default']['#default_value'] = 'uw_lbs_contained_width';
}
}
/**
......
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