You are here

function uc_quote_cart_pane in Ubercart 6.2

Same name and namespace in other branches
  1. 5 shipping/uc_quote/uc_quote.module \uc_quote_cart_pane()

Implements hook_cart_pane().

File

shipping/uc_quote/uc_quote.module, line 458
The controller module for fulfillment modules that process physical goods.

Code

function uc_quote_cart_pane($items) {
  if (arg(0) == 'cart') {
    if (!variable_get('uc_cap_quotes_enabled', FALSE) || variable_get('uc_cart_delivery_not_shippable', TRUE) && !uc_cart_is_shippable()) {
      return array();
    }
    $body = drupal_get_form('uc_cart_pane_quotes', $items);
  }
  else {
    $body = '';
  }
  $panes[] = array(
    'id' => 'quotes',
    'title' => t('Shipping quotes'),
    'enabled' => FALSE,
    'weight' => 5,
    'body' => $body,
  );
  return $panes;
}