You are here

function theme_uc_shipping_new_package_fieldset in Ubercart 5

Same name and namespace in other branches
  1. 6.2 shipping/uc_shipping/uc_shipping.admin.inc \theme_uc_shipping_new_package_fieldset()
  2. 7.3 shipping/uc_shipping/uc_shipping.admin.inc \theme_uc_shipping_new_package_fieldset()

Format and display the products in a shipping type fieldset.

File

shipping/uc_shipping/uc_shipping.module, line 304
Organizes ordered products into packages and sets them up for shipment. Shipping method modules may add functionality to generate shipping labels and tracking numbers.

Code

function theme_uc_shipping_new_package_fieldset($fieldset) {
  $output = '';
  $header = array(
    theme('table_select_header_cell'),
    t('Model'),
    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;
}