You are here

function commerce_ups_menu in Commerce UPS 7.2

Same name and namespace in other branches
  1. 7 commerce_ups.module \commerce_ups_menu()

Implements hook_menu().

File

./commerce_ups.module, line 11
Handles main functionality for Commerce UPS module.

Code

function commerce_ups_menu() {
  $items['admin/commerce/config/shipping/methods/ups/edit'] = array(
    'title' => 'Edit',
    'description' => 'Configure the UPS shipping method.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'commerce_ups_settings_form',
    ),
    'access arguments' => array(
      'administer shipping',
    ),
    'file' => 'includes/commerce_ups.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'context' => MENU_CONTEXT_INLINE,
    'weight' => 0,
  );
  return $items;
}