function hook_field_create_field

Act on a field being created.

This hook lets modules react to the creation of a field. It is called after the definition is saved, so it cannot be used to modify the field itself.

Parameters

$field: The field just created.

Related topics

2 functions implement hook_field_create_field()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

field_sql_storage_field_create_field in drupal/core/modules/field_sql_storage/field_sql_storage.module
Implements hook_field_create_field().
field_test_field_create_field in drupal/core/modules/field/tests/modules/field_test/field_test.module
Memorize calls to hook_field_create_field().
1 invocation of hook_field_create_field()
Field::saveNew in drupal/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/Field.php
Saves a new field definition.

File

drupal/core/modules/field/field.api.php, line 1831

Code

function hook_field_create_field($field) {

  // @todo Needs function body.
}