You are here

function paymentreference_payment_insert in Payment 7

Implements hook_ENTITY_TYPE_ACTION().

File

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

Code

function paymentreference_payment_insert(Payment $payment) {
  if (!empty($payment->context_data['paymentreference'])) {
    paymentreference_insert($payment->context_data['entity_type'], $payment->context_data['bundle'], $payment->context_data['field_name'], $payment->pid);
  }
}