diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-11-26 05:54:48 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-11-26 05:54:48 +0000 |
commit | d3de3672f18c86f060bc559da3c5bd4f14833071 (patch) | |
tree | bf4419f2370d691e723a1d4f60cc9298ced2be40 /includes | |
parent | 37339758d1611af9783888c1f837d1c628b3bab1 (diff) | |
download | brdo-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.inc | 8 |
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 |