You are here

function uc_flatrate_menu in Ubercart 6.2

Same name and namespace in other branches
  1. 5 shipping/uc_flatrate/uc_flatrate.module \uc_flatrate_menu()
  2. 7.3 shipping/uc_flatrate/uc_flatrate.module \uc_flatrate_menu()

Implements hook_menu().

File

shipping/uc_flatrate/uc_flatrate.module, line 15
Shipping quote module that defines a flat shipping rate for each product.

Code

function uc_flatrate_menu() {
  $items = array();
  $items['admin/store/settings/quotes/methods/flatrate'] = array(
    'title' => 'Flat rate',
    'page callback' => 'uc_flatrate_admin_methods',
    'access arguments' => array(
      'configure quotes',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'uc_flatrate.admin.inc',
  );
  $items['admin/store/settings/quotes/methods/flatrate/%'] = array(
    'title' => 'Edit flat rate method',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'uc_flatrate_admin_method_edit_form',
      6,
    ),
    'access arguments' => array(
      'configure quotes',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'uc_flatrate.admin.inc',
  );
  $items['admin/store/settings/quotes/flatrate/%/delete'] = array(
    'title' => 'Delete flat rate method',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'uc_flatrate_admin_method_confirm_delete',
      5,
    ),
    'access arguments' => array(
      'configure quotes',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'uc_flatrate.admin.inc',
  );
  return $items;
}