function hook_field_update_instance

Act on a field instance being updated.

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

Parameters

$instance: The instance as it is post-update.

$prior_$instance: The instance as it was pre-update.

Related topics

2 functions implement hook_field_update_instance()

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

image_field_update_instance in drupal/core/modules/image/image.module
Implements hook_field_update_instance().
views_field_update_instance in drupal/core/modules/views/views.module
Implements hook_field_update_instance.
1 invocation of hook_field_update_instance()
FieldInstance::saveUpdated in drupal/core/modules/field/lib/Drupal/field/Plugin/Core/Entity/FieldInstance.php
Saves an updated field instance definition.

File

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

Code

function hook_field_update_instance($instance, $prior_instance) {

  // @todo Needs function body.
}