function field_test_entity_extra_field_info_alter
Same name in other branches
- 9 core/modules/field/tests/modules/field_test/field_test.module \field_test_entity_extra_field_info_alter()
- 10 core/modules/field/tests/modules/field_test/field_test.module \field_test_entity_extra_field_info_alter()
- 11.x core/modules/field/tests/modules/field_test/field_test.module \field_test_entity_extra_field_info_alter()
Implements hook_entity_extra_field_info_alter().
File
-
core/
modules/ field/ tests/ modules/ field_test/ field_test.module, line 180
Code
function field_test_entity_extra_field_info_alter(&$info) {
// Remove all extra fields from the 'no_fields' content type;
unset($info['node']['no_fields']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.