field_info_cache_clear
- Versions
- 7
field_info_cache_clear()
Clears the field info cache without clearing the field data cache.
This is useful when deleted fields or instances are purged. We need to remove the purged records, but no actual field data items are affected.
Related topics
Code
modules/field/field.info.inc, line 25
<?php
function field_info_cache_clear() {
// @todo: Remove this when field_attach_*_bundle() bundle management
// functions are moved to the entity API.
entity_info_cache_clear();
_field_info_collate_types(TRUE);
drupal_static_reset('field_build_modes');
_field_info_collate_fields(TRUE);
}
?>Login or register to post comments 