You are here

function uc_ups_menu in Ubercart 8.4

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

Implements hook_menu().

File

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

Code

function uc_ups_menu() {
  $items['admin/store/orders/%uc_order/shipments/ups'] = [
    'title' => 'UPS shipment',
    'page callback' => 'drupal_get_form',
    'page arguments' => [
      'uc_ups_confirm_shipment',
      3,
    ],
    'access arguments' => [
      'fulfill orders',
    ],
    'file' => 'src/Plugin/Ubercart/FulfillmentMethod/uc_ups.ship.inc',
  ];
  $items['admin/store/orders/%uc_order/shipments/labels/ups'] = [
    'page callback' => 'theme',
    'page arguments' => [
      'uc_ups_label_image',
    ],
    'access arguments' => [
      'fulfill orders',
    ],
    'file' => 'src/Plugin/Ubercart/FulfillmentMethod/uc_ups.ship.inc',
  ];
  return $items;
}