function theme_uc_shipping_new_package_fieldset in Ubercart 6.2
Same name and namespace in other branches
- 5 shipping/uc_shipping/uc_shipping.module \theme_uc_shipping_new_package_fieldset()
- 7.3 shipping/uc_shipping/uc_shipping.admin.inc \theme_uc_shipping_new_package_fieldset()
Formats and displays the products in a shipping type fieldset.
See also
File
- shipping/
uc_shipping/ uc_shipping.admin.inc, line 148 - Shipping administration menu items.
Code
function theme_uc_shipping_new_package_fieldset($fieldset) {
$output = '';
$header = array(
theme('table_select_header_cell'),
t('SKU'),
t('Title'),
t('Qty'),
t('Package'),
);
$rows = array();
foreach (element_children($fieldset) as $op_id) {
$row = array();
$row[] = drupal_render($fieldset[$op_id]['checked']);
$row[] = drupal_render($fieldset[$op_id]['model']);
$row[] = drupal_render($fieldset[$op_id]['name']);
$row[] = drupal_render($fieldset[$op_id]['qty']);
$row[] = drupal_render($fieldset[$op_id]['package']);
$rows[] = $row;
}
$output .= theme('table', $header, $rows);
$output .= drupal_render($fieldset);
return $output;
}