Skip to content
Snippets Groups Projects
Commit ab30b6da authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-5234: only using image in media section for now

parent 701db719
No related branches found
No related tags found
1 merge request!184Feature/istwcms 5234 ebremner hero
......@@ -719,15 +719,6 @@ function uw_cfg_common_form_alter(array &$form, FormStateInterface $form_state,
// on a node add/edit page, so add the states for the
// actual media types in the hero section.
if (isset($form['field_uw_type_of_media'])) {
$form['field_uw_banner']['#states'] = [
'visible' => [
[
'select[name="field_uw_type_of_media"]' => [
['value' => 'banner'],
],
],
],
];
$form['field_uw_hero_image']['#states'] = [
'visible' => [
[
......@@ -737,15 +728,6 @@ function uw_cfg_common_form_alter(array &$form, FormStateInterface $form_state,
],
],
];
$form['field_uw_remote_video']['#states'] = [
'visible' => [
[
'select[name="field_uw_type_of_media"]' => [
['value' => 'remote_video'],
],
],
],
];
}
}
......
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