You are here

function uc_fedex_menu in FedEx Shipping 6

Same name and namespace in other branches
  1. 5 uc_fedex.module \uc_fedex_menu()
  2. 6.2 uc_fedex.module \uc_fedex_menu()
  3. 7.2 uc_fedex.module \uc_fedex_menu()
  4. 7 uc_fedex.module \uc_fedex_menu()

Implementation of hook_menu(). Called when Drupal is building menus. Cache parameter lets module know if Drupal intends to cache menu or not - different results may be returned for either case.

Return value

An array with the menu path, callback, and parameters.

File

./uc_fedex.module, line 34
FedEx Web Services Rate / Available Services Quote

Code

function uc_fedex_menu() {
  $items = array();
  $items['admin/store/settings/quotes/methods/fedex'] = array(
    'title' => 'FedEx',
    'access arguments' => array(
      'configure quotes',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'uc_fedex_admin_settings',
    ),
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}