You are here

function uc_ajax_cart_show_cart in Ubercart AJAX Cart 7.2

Same name and namespace in other branches
  1. 6.2 uc_ajax_cart.module \uc_ajax_cart_show_cart()

@todo Please document this function.

See also

http://drupal.org/node/1354

1 call to uc_ajax_cart_show_cart()
uc_ajax_cart_callback in ./uc_ajax_cart.module
@todo Please document this function.

File

./uc_ajax_cart.module, line 174

Code

function uc_ajax_cart_show_cart() {
  $cartContent = uc_cart_get_contents();
  if (count($cartContent) > 0) {
    print theme('uc_ajax_cart_block_content', array(
      'items' => $cartContent,
    ));
  }
  else {
    print theme('uc_ajax_cart_block_content_empty', array(
      'items' => $cartContent,
    ));
  }
}