public function UcCartItemController::buildContent in Ubercart 7.3
Overrides EntityAPIController::buildContent().
Overrides EntityAPIController::buildContent
File
- uc_cart/
uc_cart.controller.inc, line 45 - Contains the controller for uc_cart_item entities.
Class
- UcCartItemController
- @file Contains the controller for uc_cart_item entities.
Code
public function buildContent($product, $view_mode = 'full', $langcode = NULL, $content = array()) {
$content += module_invoke($product->data['module'], 'uc_cart_display', $product);
if (!empty($content)) {
$content['cart_item_id'] = array(
'#type' => 'hidden',
'#value' => isset($product->cart_item_id) ? $product->cart_item_id : 0,
);
}
return parent::buildContent($product, $view_mode, $langcode, $content);
}