function uc_fedex_label_image in FedEx Shipping 7.2
Same name and namespace in other branches
- 6.2 uc_fedex.ship.inc \uc_fedex_label_image()
Displays the shipping label for printing.
Each argument is a component of the file path to the image.
1 string reference to 'uc_fedex_label_image'
- uc_fedex_menu in ./
uc_fedex.module - Implements hook_menu().
File
- ./
uc_fedex.ship.inc, line 465 - FedEx Web Services Rate / Available Services Quote.
Code
function uc_fedex_label_image() {
$args = explode('/', $_GET['q'], 8);
if (count($args) != 8) {
return MENU_NOT_FOUND;
}
$image_path = file_stream_wrapper_uri_normalize($args[7]);
file_transfer($image_path, file_get_content_headers($image_path));
}