You are here

function basic_cart_cart in Basic cart 7

Same name and namespace in other branches
  1. 7.3 basic_cart.cart.inc \basic_cart_cart()
  2. 7.2 basic_cart.cart.inc \basic_cart_cart()

Callback function for cart listing.

1 string reference to 'basic_cart_cart'
basic_cart_menu in ./basic_cart.module
Implements hook_menu().

File

./basic_cart.cart.inc, line 11
Basic cart shopping cart implementation functions.

Code

function basic_cart_cart() {
  $cart = basic_cart_get_cart();
  if (empty($cart)) {
    return t('Your cart is empty.');
  }
  return drupal_get_form('basic_cart_cart_form');
}