You are here

public function MerciLineItemEntityControllerDeprecated::attachLoad in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3

Unserializes the data property of loaded line items.

Overrides DrupalDefaultEntityController::attachLoad

File

merci_line_item/includes/merci_line_item.controller.inc, line 514
Provides a central controller for Drupal Commerce.

Class

MerciLineItemEntityControllerDeprecated
The controller class for line items contains methods for the line item CRUD operations. The load method is inherited from the default controller.

Code

public function attachLoad(&$queried_line_items, $revision_id = FALSE) {
  foreach ($queried_line_items as $line_item_id => &$line_item) {
    $line_item->data = unserialize($line_item->data);
  }

  // Call the default attachLoad() method. This will add fields and call
  // hook_merci_line_item_load().
  parent::attachLoad($queried_line_items, $revision_id);
}