function commerce_usps_menu in Commerce USPS 7
Same name and namespace in other branches
- 7.2 commerce_usps.module \commerce_usps_menu()
Implements hook_menu().
File
- ./
commerce_usps.module, line 11 - Defines the USPS shipping method and services for Drupal Commerce.
Code
function commerce_usps_menu() {
$items = array();
$items['admin/commerce/config/shipping/methods/usps/edit'] = array(
'title' => 'Edit',
'description' => 'Adjust USPS shipping settings.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'commerce_usps_settings_form',
),
'access arguments' => array(
'administer shipping',
),
'file' => 'commerce_usps.inc',
'type' => MENU_LOCAL_TASK,
'context' => MENU_CONTEXT_INLINE,
'weight' => 0,
);
return $items;
}