You are here

function uc_quote_cart_returned_rates in Ubercart 7.3

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

Ajax callback: Shows estimated shipping quotes on the cart page.

1 string reference to 'uc_quote_cart_returned_rates'
uc_cart_pane_quotes in shipping/uc_quote/uc_quote.module
Cart pane callback.

File

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

Code

function uc_quote_cart_returned_rates($form, $form_state) {
  $commands[] = ajax_command_replace('#quote', trim(drupal_render($form['quote'])));
  $commands[] = ajax_command_prepend('#quote', trim(theme('status_messages')));
  return array(
    '#type' => 'ajax',
    '#commands' => $commands,
  );
}