public function CommercePaymentTransactionEntityController::attachLoad in Commerce Core 7
Unserializes the message_variables and payload properties of loaded payment transactions.
Overrides DrupalDefaultEntityController::attachLoad
File
- modules/
payment/ includes/ commerce_payment_transaction.controller.inc, line 133 - The controller for the payment transaction entity containing the CRUD operations.
Class
- CommercePaymentTransactionEntityController
- The controller class for payment transactions contains methods for the transaction CRUD operations. The load method is inherited from the default controller.
Code
public function attachLoad(&$queried_transactions, $revision_id = FALSE) {
foreach ($queried_transactions as $transaction_id => &$transaction) {
$transaction->message_variables = unserialize($transaction->message_variables);
$transaction->payload = unserialize($transaction->payload);
$transaction->data = unserialize($transaction->data);
}
// Call the default attachLoad() method. This will add fields and call
// hook_user_load().
parent::attachLoad($queried_transactions, $revision_id);
}