function entity_info_cache_clear
Resets the cached information about entity types.
7 calls to entity_info_cache_clear()
- drupal_flush_all_caches in includes/
common.inc - Flushes all cached data on the site.
- field_info_cache_clear in modules/
field/ field.info.inc - Clears the field info cache without clearing the field data cache.
- field_test_entity_info_translatable in modules/
field/ tests/ field_test.entity.inc - Helper function to enable entity translations.
- field_ui_field_attach_rename_bundle in modules/
field_ui/ field_ui.module - Implements hook_field_attach_rename_bundle().
- module_disable in includes/
module.inc - Disables a given set of modules.
File
-
includes/
common.inc, line 8093
Code
function entity_info_cache_clear() {
drupal_static_reset('entity_get_info');
// Clear all languages.
cache_clear_all('entity_info:', 'cache', TRUE);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.