You are here

function theme_uc_order_state_table in Ubercart 7.3

Same name and namespace in other branches
  1. 5 uc_order/uc_order.module \theme_uc_order_state_table()
  2. 6.2 uc_order/uc_order.module \theme_uc_order_state_table()

Themes the order state table in the order workflow settings.

See also

uc_order_workflow_form()

1 theme call to theme_uc_order_state_table()
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 194
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,
  ));
}