summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
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