function uc_usps_menu in Ubercart 5
Same name and namespace in other branches
- 6.2 shipping/uc_usps/uc_usps.module \uc_usps_menu()
- 7.3 shipping/uc_usps/uc_usps.module \uc_usps_menu()
Implementation of hook_menu().
File
- shipping/
uc_usps/ uc_usps.module, line 18 - Shipping quote method module that receives quotes from the United States Postal Service via XML web service.
Code
function uc_usps_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'admin/store/settings/quotes/methods/usps',
'title' => t('USPS'),
'access' => user_access('configure quotes'),
'callback' => 'drupal_get_form',
'callback arguments' => array(
'uc_usps_admin_settings',
),
'type' => MENU_LOCAL_TASK,
);
}
return $items;
}