You are here

function _uc_order_states_summarize in Ubercart 6.2

Summarizes the order status settings.

This function summarizes the order statuses that have been defined. It is organized under a parent node specifying that the following settings are order statuses.

Parameters

$form: The form passed from the summarizer.

$states: An array of order statuses.

Return value

An array of summary information.

1 string reference to '_uc_order_states_summarize'
uc_order_workflow_form in uc_order/uc_order.admin.inc
Displays the order workflow form for order state and status customization.

File

uc_order/uc_order.admin.inc, line 111
Order administration menu items.

Code

function _uc_order_states_summarize($form, $states) {
  $statuses = $items = array();
  foreach ($states as $state) {
    $items[] = t('@state', array(
      '@state' => $state['title'],
    ));
  }
  $statuses[] = array(
    'data' => t('The following order statuses have been defined:'),
    'children' => $items,
  );
  return $statuses;
}