You are here

function name_field_insert in Name Field 7

Implements hook_field_insert().

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

File

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

Code

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

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