function uc_shipping_shipment_print in Ubercart 7.3
Shows a printer-friendly version of a shipment.
1 string reference to 'uc_shipping_shipment_print'
- uc_shipping_menu in shipping/
uc_shipping/ uc_shipping.module - Implements hook_menu().
File
- shipping/
uc_shipping/ uc_shipping.admin.inc, line 1075 - Shipping administration menu items.
Code
function uc_shipping_shipment_print($order, $shipment, $labels = TRUE) {
$build = array(
'#theme' => 'uc_shipping_shipment_print',
'#order' => $order,
'#shipment' => $shipment,
'#labels' => $labels,
);
drupal_add_http_header('Content-Type', 'text/html; charset=utf-8');
print theme('uc_packing_slip_page', array(
'content' => drupal_render($build),
));
exit;
}