You are here

function paymentreference_field_insert in Payment 7

Implements hook_field_insert().

File

modules/paymentreference/paymentreference.module, line 269
Hook implementations and general functions.

Code

function paymentreference_field_insert($entity_type, $entity, array $field, array $instance, $langcode, array &$items) {
  if ($field['type'] == 'paymentreference') {
    foreach ($items as $item) {
      paymentreference_delete_by_pid($item['pid']);
    }
  }
}