You are here

function uc_flatrate_menu in Ubercart 7.3

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

Implements hook_menu().

File

shipping/uc_flatrate/uc_flatrate.module, line 11
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/add'] = array(
    'title' => 'Add flat rate quote',
    'description' => 'Create a new flat rate shipping quote.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'uc_flatrate_admin_method_edit_form',
    ),
    'access arguments' => array(
      'configure quotes',
    ),
    'type' => MENU_LOCAL_ACTION,
    'file' => 'uc_flatrate.admin.inc',
  );
  $items['admin/store/settings/quotes/methods/flatrate/%'] = array(
    'title' => 'Edit flat rate method',
    'description' => 'Edit an existing flat rate shipping quote.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'uc_flatrate_admin_method_edit_form',
      6,
    ),
    'access arguments' => array(
      'configure quotes',
    ),
    'file' => 'uc_flatrate.admin.inc',
  );
  $items['admin/store/settings/quotes/flatrate/%/delete'] = array(
    'title' => 'Delete flat rate method',
    'description' => 'Delete a flat rate shipping quote.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'uc_flatrate_admin_method_confirm_delete',
      5,
    ),
    'access arguments' => array(
      'configure quotes',
    ),
    'file' => 'uc_flatrate.admin.inc',
  );
  return $items;
}