You are here

function uc_ups_uc_shipping_method in Ubercart 7.3

Same name and namespace in other branches
  1. 8.4 shipping/uc_ups/uc_ups.module \uc_ups_uc_shipping_method()

Implements hook_uc_shipping_method().

1 call to uc_ups_uc_shipping_method()
theme_uc_ups_confirm_shipment in shipping/uc_ups/uc_ups.ship.inc
Displays final shipment information for review.

File

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

Code

function uc_ups_uc_shipping_method() {
  $methods['ups'] = array(
    'id' => 'ups',
    'module' => 'uc_ups',
    'title' => t('UPS'),
    'operations' => array(
      'configure' => array(
        'title' => t('configure'),
        'href' => 'admin/store/settings/quotes/settings/ups',
      ),
    ),
    'quote' => array(
      'type' => 'small_package',
      'callback' => 'uc_ups_quote',
      'accessorials' => _uc_ups_service_list(),
    ),
    'ship' => array(
      'type' => 'small_package',
      'callback' => 'uc_ups_fulfill_order',
      'file' => 'uc_ups.ship.inc',
      'pkg_types' => _uc_ups_pkg_types(),
    ),
    'cancel' => 'uc_ups_void_shipment',
  );
  return $methods;
}