function mollie_payment_entity_load in Mollie Payment 7.2
Same name and namespace in other branches
- 7 mollie_payment.module \mollie_payment_entity_load()
Implements hook_entity_load().
File
- ./
mollie_payment.module, line 220 - Provides Mollie integration for the Payment platform.
Code
function mollie_payment_entity_load(array $entities, $entity_type) {
if ($entity_type == 'payment_method') {
foreach ($entities as $payment_method) {
if ($payment_method->controller->name == 'MolliePaymentMethodController') {
$payment_method->controller_data = mollie_payment_payment_method_configuration_load($payment_method->pmid);
}
}
}
}