function hook_field_update_field
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
2 functions implement hook_field_update_field()
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_field in modules/
image/ image.module - Implements hook_field_update_field().
- list_field_update_field in modules/
field/ modules/ list/ list.module - Implements hook_field_update_field().
1 invocation of hook_field_update_field()
- field_update_field in modules/
field/ field.crud.inc - Updates a field.
File
-
modules/
field/ field.api.php, line 2552
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');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.