function theme_uc_order_status_table in Ubercart 5
Same name and namespace in other branches
- 6.2 uc_order/uc_order.module \theme_uc_order_status_table()
- 7.3 uc_order/uc_order.admin.inc \theme_uc_order_status_table()
1 theme call to theme_uc_order_status_table()
- uc_order_workflow_form in uc_order/
uc_order.module
File
- uc_order/
uc_order.module, line 922
Code
function theme_uc_order_status_table($form) {
$header = array(
t('ID'),
t('Title'),
t('Weight'),
t('State'),
t('Remove'),
);
foreach (element_children($form) as $state_id) {
if ($state_id == 'create') {
$create = '<br />' . t('Use this button to create a custom order status: ') . drupal_render($form['create']);
}
else {
$rows[] = array(
drupal_render($form[$state_id]['id']),
drupal_render($form[$state_id]['title']),
drupal_render($form[$state_id]['weight']),
drupal_render($form[$state_id]['state']),
array(
'data' => drupal_render($form[$state_id]['remove']),
'align' => 'center',
),
);
}
}
return theme('table', $header, $rows) . $create;
}