1.20.x date.field.inc date_field_insert($entity_type, $entity, $field, $instance, $langcode, &$items)

Implements hook_field_insert().

File

modules/date/date.field.inc, line 510
Field hooks to implement a date field.

Code

function date_field_insert($entity_type, $entity, $field, $instance, $langcode, &$items) {
  $context = array(
    'entity_type' => $entity_type,
    'entity' => $entity,
    'field' => $field,
    'instance' => $instance,
    'langcode' => $langcode,
  );
  backdrop_alter('date_field_insert', $items, $context);
}