You are here

function _uc_ups_new_package in Ubercart 7.3

Same name and namespace in other branches
  1. 5 shipping/uc_ups/uc_ups.module \_uc_ups_new_package()
  2. 6.2 shipping/uc_ups/uc_ups.module \_uc_ups_new_package()

Pseudo-constructor to set default values of a package.

1 call to _uc_ups_new_package()
uc_ups_quote in shipping/uc_ups/uc_ups.module
Callback for retrieving a UPS shipping quote.

File

shipping/uc_ups/uc_ups.module, line 979
UPS shipping quote module.

Code

function _uc_ups_new_package() {
  $package = new stdClass();
  $package->weight = 0;
  $package->price = 0;
  $package->length = 0;
  $package->width = 0;
  $package->height = 0;
  $package->length_units = 'in';
  $package->weight_units = 'lb';
  $package->qty = 1;
  $package->pkg_type = '02';
  return $package;
}