You are here

function theme_uc_shipping_package_dimensions in Ubercart 5

Same name and namespace in other branches
  1. 6.2 shipping/uc_shipping/uc_shipping.module \theme_uc_shipping_package_dimensions()

Display length, width, and height fields on one line.

1 theme call to theme_uc_shipping_package_dimensions()
uc_shipping_shipment_edit in shipping/uc_shipping/uc_shipping.module
Create or edit a shipment.

File

shipping/uc_shipping/uc_shipping.module, line 992
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_package_dimensions($form) {
  $output = '';
  $row = array();
  foreach (element_children($form) as $dimension) {
    $row[] = drupal_render($form[$dimension]);
  }
  $output .= theme('table', array(), array(
    $row,
  ));
  return $output;
}