summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-26 05:54:48 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-26 05:54:48 +0000
commitd3de3672f18c86f060bc559da3c5bd4f14833071 (patch)
treebf4419f2370d691e723a1d4f60cc9298ced2be40 /includes
parent37339758d1611af9783888c1f837d1c628b3bab1 (diff)
downloadbrdo-d3de3672f18c86f060bc559da3c5bd4f14833071.tar.gz
brdo-d3de3672f18c86f060bc559da3c5bd4f14833071.tar.bz2
#642612 by yched: Add clean way to reset entity_info() cache.
Diffstat (limited to 'includes')
-rw-r--r--includes/common.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 22d58488d..e22ce998a 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -6279,6 +6279,14 @@ function entity_get_info($entity_type = NULL) {
}
/**
+ * Resets the cached information about entity types.
+ */
+function entity_info_cache_clear() {
+ drupal_static_reset('entity_get_info');
+ cache_clear_all('entity_info', 'cache');
+}
+
+/**
* Helper function to extract id, vid, and bundle name from an entity.
*
* @param $entity_type