diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-12-26 16:50:09 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-12-26 16:50:09 +0000 |
commit | 53748ab5e24de5e33e9cf115e91a5845daa2ecbd (patch) | |
tree | 6a2c0c9d2f933ef6d112db66a4655ce0f557126a /includes | |
parent | a838c8be49ed46f9ffb911113c55f9944ae7f952 (diff) | |
download | brdo-53748ab5e24de5e33e9cf115e91a5845daa2ecbd.tar.gz brdo-53748ab5e24de5e33e9cf115e91a5845daa2ecbd.tar.bz2 |
- Patch #664544 by yched: clean-up entity build/view modes.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/common.inc | 2 |
1 files changed, 2 insertions, 0 deletions
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'); } /** |