From 53748ab5e24de5e33e9cf115e91a5845daa2ecbd Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 26 Dec 2009 16:50:09 +0000 Subject: - Patch #664544 by yched: clean-up entity build/view modes. --- includes/common.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'includes') diff --git a/includes/common.inc b/includes/common.inc index e6db76cd5..c66db98aa 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -6296,6 +6296,7 @@ function entity_get_info($entity_type = NULL) { 'static cache' => TRUE, 'load hook' => $name . '_load', 'bundles' => array(), + 'view modes' => array(), 'object keys' => array(), 'cacheable' => TRUE, 'translation' => array(), @@ -6325,6 +6326,7 @@ function entity_get_info($entity_type = NULL) { function entity_info_cache_clear() { drupal_static_reset('entity_get_info'); cache_clear_all('entity_info', 'cache'); + drupal_static_reset('entity_view_mode_info'); } /** -- cgit v1.2.3