Skip navigation
Help

theme_uc_order_state_table

6 uc_order.module theme_uc_order_state_table($form)
7 uc_order.admin.inc theme_uc_order_state_table($variables)

Themes the order state table in the order workflow settings.

See also

uc_order_workflow_form()

Related topics

File

ubercart/uc_order/uc_order.admin.inc, line 192
Order administration menu items.

Code

function theme_uc_order_state_table($variables) {
  $form = $variables['form'];

  $header = array(t('State'), t('Default order status'));

  foreach (element_children($form) as $state_id) {
    $rows[] = array(
      drupal_render($form[$state_id]['title']),
      drupal_render($form[$state_id]['default']),
    );
  }

  return theme('table', array('header' => $header, 'rows' => $rows));
}