You are here

function uc_cart_cart_pane in Ubercart 5

Same name and namespace in other branches
  1. 6.2 uc_cart/uc_cart.module \uc_cart_cart_pane()

Implementation of hook_cart_pane().

File

uc_cart/uc_cart.module, line 508

Code

function uc_cart_cart_pane($items) {
  $panes[] = array(
    'id' => 'cart_form',
    'title' => t('Default cart form'),
    'enabled' => TRUE,
    'weight' => 0,
    'body' => !is_null($items) ? '<div id="cart-form-pane">' . drupal_get_form('uc_cart_view_form', $items) . '</div>' : '',
  );
  return $panes;
}