You are here

function uc_cart_cart_pane in Ubercart 6.2

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

Implements hook_cart_pane().

File

uc_cart/uc_cart.module, line 775

Code

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