You are here

function _uc_cart_panes_summarize in Ubercart 6.2

Summarize cart and checkout panes.

Parameters

$form: The form passed from the summarizer

$panes: Any array of cart/checkout panes

Return value

An array of summary information

Although this function is called 'cart_panes', it also operates on checkout panes, which are structured the same way.

2 string references to '_uc_cart_panes_summarize'
uc_cart_cart_panes_form in uc_cart/uc_cart.admin.inc
Settings for panes on the cart page.
uc_cart_checkout_panes_form in uc_cart/uc_cart.admin.inc
Settings for panes on the checkout page.

File

uc_cart/uc_cart.admin.inc, line 401
Cart administration menu items.

Code

function _uc_cart_panes_summarize($form, $panes) {
  $items = array();
  foreach ($panes as $pane) {
    $items[] = t('@title is @enabled.', array(
      '@title' => $pane['title'],
      '@enabled' => $pane['enabled'] ? t('enabled') : t('disabled'),
    ));
  }
  return $items;
}