hook_field_update_field

  1. drupal
    1. 8
    2. 7
Versions
7 – 8 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

Code

modules/field/field.api.php, line 2435

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