Index: docroot/modules/field_ui/field_ui.module
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- docroot/modules/field_ui/field_ui.module	(revision 6d9c337b77c6015d873662d17084ea5ac39ae724)
+++ docroot/modules/field_ui/field_ui.module	(revision )
@@ -178,21 +178,25 @@
           // view modes, and use an access callback to determine which ones are
           // actually visible for a given bundle.
           $weight = 0;
+
           $view_modes = array('default' => array('label' => t('Default'))) + $entity_info['view modes'];
           foreach ($view_modes as $view_mode => $view_mode_info) {
+            if(strpos($view_mode,'commerce_product_commerce_product')){
-            $items["$path/display/$view_mode"] = array(
-              'title' => $view_mode_info['label'],
-              'page arguments' => array('field_ui_display_overview_form', $entity_type, $bundle_arg, $view_mode),
-              // The access callback needs to check both the current 'custom
-              // display' setting for the view mode, and the overall access
-              // rules for the bundle admin pages.
-              'access callback' => '_field_ui_view_mode_menu_access',
-              'access arguments' => array_merge(array($entity_type, $bundle_arg, $view_mode, $access['access callback']), $access['access arguments']),
-              'type' => ($view_mode == 'default' ? MENU_DEFAULT_LOCAL_TASK : MENU_LOCAL_TASK),
-              'weight' => ($view_mode == 'default' ? -10 : $weight++),
-              'file' => 'field_ui.admin.inc',
-            );
-          }
+                $items["$path/display/$view_mode"] = array(
+                  'title' => $view_mode_info['label'],
+                  'page arguments' => array('field_ui_display_overview_form', $entity_type, $bundle_arg, $view_mode),
+                  // The access callback needs to check both the current 'custom
+                  // display' setting for the view mode, and the overall access
+                  // rules for the bundle admin pages.
+                  'access callback' => '_field_ui_view_mode_menu_access',
+                  'access arguments' => array_merge(array($entity_type, $bundle_arg, $view_mode, $access['access callback']), $access['access arguments']),
+                  'type' => ($view_mode == 'default' ? MENU_DEFAULT_LOCAL_TASK : MENU_LOCAL_TASK),
+                  'weight' => ($view_mode == 'default' ? -10 : $weight++),
+                  'file' => 'field_ui.admin.inc',
+                );
+            }
+          }
+
         }
       }
     }
