function PaymentMethodEntityController::attachLoad in Payment 7
Overridden.
Changed to call type-specific hook with the entities keyed by name if they have one.
Overrides EntityAPIControllerExportable::attachLoad
See also
DrupalDefaultEntityController::attachLoad()
File
- ./
payment.classes.inc, line 679 - The API and related functions for executing and managing payments.
Class
- PaymentMethodEntityController
- Entity API controller for payment_method entities.
Code
function attachLoad(&$queries_entities, $revision_id = FALSE) {
foreach ($queries_entities as $entity) {
$entity->controller = payment_method_controller_load($entity->controller_class_name);
if (!$entity->controller) {
$entity->controller = payment_method_controller_load('PaymentMethodControllerUnavailable');
}
unset($entity->controller_class_name);
}
parent::attachLoad($queries_entities, $revision_id);
}