summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-12-26 16:50:09 +0000
committerDries Buytaert <dries@buytaert.net>2009-12-26 16:50:09 +0000
commit53748ab5e24de5e33e9cf115e91a5845daa2ecbd (patch)
tree6a2c0c9d2f933ef6d112db66a4655ce0f557126a /includes
parenta838c8be49ed46f9ffb911113c55f9944ae7f952 (diff)
downloadbrdo-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.inc2
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');
}
/**