1 field.api.php hook_field_update_field($field, $prior_field, $has_data)

Act on a field being updated.

This hook is invoked just after field is updated in field_update_field().

Parameters

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

$prior_field: The field as it was pre-update.

$has_data: Whether any data already exists for this field.

Related topics

File

core/modules/field/field.api.php, line 2596
Hooks provided by the Field module.

Code

function hook_field_update_field($field, $prior_field, $has_data) {
  // Reset the static value that keeps track of allowed values for list fields.
  backdrop_static_reset('list_allowed_values');
}