public function CommerceOrderEntityController::attachLoad in Commerce Core 7
Unserializes the data property of loaded orders.
Overrides DrupalDefaultEntityController::attachLoad
File
- modules/
order/ includes/ commerce_order.controller.inc, line 141 - The controller for the order entity containing the CRUD operations.
Class
- CommerceOrderEntityController
- The controller class for orders contains methods for the order CRUD operations. The load method is inherited from the default controller.
Code
public function attachLoad(&$queried_orders, $revision_id = FALSE) {
foreach ($queried_orders as $order_id => &$order) {
$order->data = unserialize($order->data);
}
// Call the default attachLoad() method. This will add fields and call
// hook_commerce_order_load().
parent::attachLoad($queried_orders, $revision_id);
}