hook_field_update_field

7 field.api.php hook_field_update_field($field, $prior_field, $has_data)
8 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

2 functions implement hook_field_update_field()

1 invocation of hook_field_update_field()

File

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

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');
}
Login or register to post comments