function field_info_cache_clear

7.x 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

19 calls to field_info_cache_clear()
FieldInfoTestCase::testFieldInfo in drupal/modules/field/tests/field.test
Test that field types and field definitions are correcly cached.
FieldInfoTestCase::testFieldInfoCache in drupal/modules/field/tests/field.test
Tests that the field info cache can be built correctly.
FieldUIManageDisplayTestCase::assertNodeViewTextHelper in drupal/modules/field_ui/field_ui.test
Asserts that a string is (not) found in the rendered nodein a view mode.
FieldUIManageDisplayTestCase::testFormatterUI in drupal/modules/field_ui/field_ui.test
Tests formatter settings.
FieldUIManageFieldsTestCase::assertFieldSettings in drupal/modules/field_ui/field_ui.test
Asserts field settings are as expected.

... See full list


drupal/modules/field/, line 54
Field Info API, providing information about available fields and field types.


function field_info_cache_clear() {

  // @todo: Remove this when field_attach_*_bundle() bundle management
  // functions are moved to the entity API.