function uc_quote_cart_pane in Ubercart 5
Same name and namespace in other branches
- 6.2 shipping/uc_quote/uc_quote.module \uc_quote_cart_pane()
 
Implementation of Übercart's hook_cart_pane.
File
- shipping/
uc_quote/ uc_quote.module, line 451  - The controller module for fulfillment modules that process physical goods.
 
Code
function uc_quote_cart_pane($items) {
  if (!variable_get('uc_cap_quotes_enabled', FALSE) || variable_get('uc_cart_delivery_not_shippable', TRUE) && !uc_cart_is_shippable()) {
    return array();
  }
  $panes[] = array(
    'id' => 'quotes',
    'title' => t('Shipping quotes'),
    'enabled' => FALSE,
    'weight' => 5,
    'body' => drupal_get_form('uc_cart_pane_quotes', $items),
  );
  return $panes;
}