function uc_checkout_pane_cart in Ubercart 6.2
Same name and namespace in other branches
- 5 uc_cart/uc_cart_checkout_pane.inc \uc_checkout_pane_cart()
- 7.3 uc_cart/uc_cart_checkout_pane.inc \uc_checkout_pane_cart()
Displays the cart contents for review during checkout.
2 string references to 'uc_checkout_pane_cart'
- hook_checkout_pane in docs/
hooks.php - Registers callbacks for a checkout pane.
- uc_cart_checkout_pane in uc_cart/
uc_cart.module - Implements hook_checkout_pane().
File
- uc_cart/
uc_cart_checkout_pane.inc, line 16 - Callbacks for the default Ubercart checkout panes and their corresponding helper functions.
Code
function uc_checkout_pane_cart($op) {
switch ($op) {
case 'view':
$contents['cart_review_table'] = array(
'#value' => theme('cart_review_table'),
'#weight' => variable_get('uc_pane_cart_field_cart_weight', 2),
);
return array(
'contents' => $contents,
'next-button' => FALSE,
);
case 'review':
$items = uc_cart_get_contents();
$review[] = theme('uc_checkout_pane_cart_review', $items);
return $review;
}
}