You are here

function mollie_payment_payment_method_delete in Mollie Payment 7

Same name and namespace in other branches
  1. 7.2 mollie_payment.module \mollie_payment_payment_method_delete()

Implements hook_ENTITY_TYPE_ACTION().

File

./mollie_payment.module, line 121
Provides Mollie integration for the Payment platform.

Code

function mollie_payment_payment_method_delete(PaymentMethod $payment_method) {
  if ($payment_method->controller->name == 'MolliePaymentMethodController') {
    variable_del('mollie_payment_' . $payment_method->pmid . '_controller_data');
  }
}