function entity_property_info_cache_clear in Entity API 7
Resets the cached information of hook_entity_property_info().
4 calls to entity_property_info_cache_clear()
- entity_field_create_instance in includes/
entity.property.inc - Implements hook_field_create_instance(). Clear the cache when a field instance changed.
- entity_field_delete_instance in includes/
entity.property.inc - Implements hook_field_delete_instance(). Clear the cache when a field instance changed.
- entity_field_update_instance in includes/
entity.property.inc - Implements hook_field_update_instance(). Clear the cache when a field instance changed.
- entity_flush_caches in ./
entity.module - Implements hook_flush_caches().
File
- includes/
entity.property.inc, line 143 - Provides API functions around hook_entity_property_info(). Also see entity.info.inc, which cares for providing entity property info for all core entity types.
Code
function entity_property_info_cache_clear() {
drupal_static_reset('entity_get_property_info');
// Clear all languages.
cache_clear_all('entity_property_info:', 'cache', TRUE);
}