Skip to content
Snippets Groups Projects
Commit ad30a136 authored by Eric Bremner's avatar Eric Bremner Committed by Kevin Paxman
Browse files

ISTWCMS-5880: adding states for group of banner settings

parent ae7aa940
No related branches found
No related tags found
3 merge requests!284Feature/istwcms 5880 ebremner banners above,!274Draft: ISTWCMS-5551: fixing office hours display,!260Feature/istwcms 5668 a5kulkar rename references to publications
...@@ -910,6 +910,17 @@ function uw_cfg_common_form_alter(array &$form, FormStateInterface $form_state, ...@@ -910,6 +910,17 @@ function uw_cfg_common_form_alter(array &$form, FormStateInterface $form_state,
], ],
], ],
]; ];
// Set the states for the banner.
$form['group_banner_settings']['#states'] = [
'visible' => [
[
'select[name="field_uw_type_of_media"]' => [
['value' => 'banner'],
],
],
],
];
} }
// If we are on the media upload form, we want to restrict // If we are on the media upload form, we want to restrict
......
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