You are here

function paymentmethodbasic_payment_method_delete in Payment 7

Implements hook_ENTITY_TYPE_ACTION().

File

modules/paymentmethodbasic/paymentmethodbasic.module, line 73
Hook implementations and shared functions.

Code

function paymentmethodbasic_payment_method_delete($entity) {
  if ($entity->controller->name == 'PaymentMethodBasicController') {
    db_delete('paymentmethodbasic')
      ->condition('pmid', $entity->pmid)
      ->execute();
  }
}