function hook_field_create_instance

Act on a field instance being created.

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

Parameters

$instance: The instance just created.

Related topics

1 function implements hook_field_create_instance()

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

views_field_create_instance in drupal/core/modules/views/views.module
Implements hook_field_create_instance.
1 invocation of hook_field_create_instance()
FieldInstance::saveNew in drupal/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/FieldInstance.php
Saves a new field instance definition.

File

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

Code

function hook_field_create_instance($instance) {

  // @todo Needs function body.
}