diff --git a/uw_cfg_common.module b/uw_cfg_common.module index 95884f44590a91623fab9d05318ff2bc20282190..a28ffbe3ce198c9913e7f20c2a17cd5642d95a21 100644 --- a/uw_cfg_common.module +++ b/uw_cfg_common.module @@ -895,10 +895,12 @@ function uw_cfg_common_form_alter(array &$form, FormStateInterface $form_state, $node_type = str_replace('node_uw_ct_', '', $form_id); $node_type = str_replace('_edit', '', $node_type); $node_type = str_replace('_form', '', $node_type); + $node_type = str_replace('_item', '', $node_type); // Content types to remove the hero image from media. $remove_hero_image_nodes = [ 'web_page', + 'catalog', ]; // If the node type can not have hero image, remove the option.