function mollie_payment_payment_method_delete in Mollie Payment 7.2
Same name and namespace in other branches
- 7 mollie_payment.module \mollie_payment_payment_method_delete()
Implements hook_ENTITY_TYPE_ACTION().
File
- ./
mollie_payment.module, line 261 - 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');
}
}