You are here

function name_field_update in Name Field 7

Implements hook_field_update().

Triggers a custom hook for name field updates. Field API only calls the module that defines the field.

File

./name.module, line 1668
Defines an API for displaying and inputing names.

Code

function name_field_update($entity_type, $entity, $field, $instance, $langcode, &$items) {

  // Ensure that $items are passed by reference.
  foreach (module_implements('name_field_update_notification') as $module) {
    $function = $module . '_name_field_insert_notification';
    $function($entity_type, $entity, $field, $instance, $langcode, $items);
  }
}