function uc_fedex_label_image in FedEx Shipping 6.2
Same name and namespace in other branches
- 7.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 = func_get_args();
$image_path = implode('/', $args);
drupal_goto($image_path);
// Alternate strategy for image display:
// Handle PDF files differently, because they can't be displayed
// with an <img> tag
$filename = explode('.', end($args));
$extension = $filename[1];
if ($extension == 'pdf') {
drupal_goto($image_path);
}
}