function hook_field_update_field

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

modules/field/field.api.php, line 2552
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.
  drupal_static_reset('list_allowed_values');
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!field!field.api.php/function/hook_field_update_field/7.x