You are here

function uc_weightquote_menu in Ubercart 7.3

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

Implements hook_menu().

File

shipping/uc_weightquote/uc_weightquote.module, line 12
Shipping quote module that defines a weight-based shipping rate for each product.

Code

function uc_weightquote_menu() {
  $items = array();
  $items['admin/store/settings/quotes/methods/weightquote/add'] = array(
    'title' => 'Add weight quote',
    'description' => 'Create a new weight based shipping quote.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'uc_weightquote_admin_method_edit_form',
    ),
    'access arguments' => array(
      'configure quotes',
    ),
    'type' => MENU_LOCAL_ACTION,
    'file' => 'uc_weightquote.admin.inc',
  );
  $items['admin/store/settings/quotes/methods/weightquote/%'] = array(
    'title' => 'Edit weight quote method',
    'description' => 'Edit an existing weight based shipping quote.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'uc_weightquote_admin_method_edit_form',
      6,
    ),
    'access arguments' => array(
      'configure quotes',
    ),
    'file' => 'uc_weightquote.admin.inc',
  );
  $items['admin/store/settings/quotes/weightquote/%/delete'] = array(
    'title' => 'Delete weight quote method',
    'description' => 'Delete a weight based shipping quote.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'uc_weightquote_admin_method_confirm_delete',
      5,
    ),
    'access arguments' => array(
      'configure quotes',
    ),
    'file' => 'uc_weightquote.admin.inc',
  );
  return $items;
}