You are here

function uc_quote_menu in Ubercart 7.3

Same name and namespace in other branches
  1. 5 shipping/uc_quote/uc_quote.module \uc_quote_menu()
  2. 6.2 shipping/uc_quote/uc_quote.module \uc_quote_menu()

Implements hook_menu().

File

shipping/uc_quote/uc_quote.module, line 26
The controller module for fulfillment modules that process physical goods.

Code

function uc_quote_menu() {
  $items = array();
  $items['admin/store/settings/quotes'] = array(
    'title' => 'Shipping quotes',
    'description' => 'Configure shipping quotes.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'uc_quote_method_settings',
    ),
    'access arguments' => array(
      'configure quotes',
    ),
    'file' => 'uc_quote.admin.inc',
  );
  $items['admin/store/settings/quotes/methods'] = array(
    'title' => 'Methods',
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/store/settings/quotes/settings'] = array(
    'title' => 'Settings',
    'description' => 'Configure shipping quote options.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'uc_quote_admin_settings',
    ),
    'access arguments' => array(
      'configure quotes',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'uc_quote.admin.inc',
  );
  $items['admin/store/settings/quotes/settings/general'] = array(
    'title' => 'Basic settings',
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items += rules_ui()
    ->config_menu('admin/store/settings/quotes');
  return $items;
}