diff --git a/ctools/content_types/entity_view.inc b/ctools/content_types/entity_view.inc index e505633..a21d256 100644 --- a/ctools/content_types/entity_view.inc +++ b/ctools/content_types/entity_view.inc @@ -28,7 +28,11 @@ function entity_entity_view_content_type_info($entity_type) { * Rendered entity use entity types machine name as subtype name. */ function entity_entity_view_content_type_content_types() { - $types = array(); + $types = &drupal_static(__FUNCTION__, array()); + if (!empty($types)) { + return $types; + } + $entities = entity_get_info(); foreach ($entities as $entity_type => $info) {