function date_field_insert in Date 8
Same name and namespace in other branches
- 7.3 date.field.inc \date_field_insert()
- 7 date.field.inc \date_field_insert()
- 7.2 date.field.inc \date_field_insert()
Implements hook_field_insert().
File
- ./
date.field.inc, line 162 - 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,
);
drupal_alter('date_field_insert', $items, $context);
}