You are here

function entityreference_field_update in Entity reference 7

Implements hook_field_update().

File

./entityreference.module, line 305
Entityreference primary module file.

Code

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

  // Invoke the behaviors.
  foreach (entityreference_get_behavior_handlers($field, $instance) as $handler) {
    $handler
      ->update($entity_type, $entity, $field, $instance, $langcode, $items);
  }
}