You are here

function commerce_cart_contents_pane_review in Commerce Core 7

Checkout pane callback: returns the cart contents review data for the Review checkout pane.

File

modules/cart/includes/commerce_cart.checkout_pane.inc, line 77
Checkout pane callback functions for the cart module.

Code

function commerce_cart_contents_pane_review($form, $form_state, $checkout_pane, $order) {
  drupal_add_css(drupal_get_path('module', 'commerce_cart') . '/theme/commerce_cart.theme.css');

  // Extract the View and display keys from the cart contents pane setting.
  list($view_id, $display_id) = explode('|', variable_get('commerce_cart_contents_pane_view', 'commerce_cart_summary|default'));
  return commerce_embed_view($view_id, $display_id, array(
    $order->order_id,
  ));
}