You are here

function uc_weightquote_menu in Ubercart 6.2

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

Implements hook_menu().

File

shipping/uc_weightquote/uc_weightquote.module, line 15
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'] = array(
    'title' => 'Weight quote',
    'page callback' => 'uc_weightquote_admin_methods',
    'access arguments' => array(
      'configure quotes',
    ),
    'type' => MENU_LOCAL_TASK,
    'file' => 'uc_weightquote.admin.inc',
  );
  $items['admin/store/settings/quotes/methods/weightquote/%'] = array(
    'title' => 'Edit weight quote method',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'uc_weightquote_admin_method_edit_form',
      6,
    ),
    'access arguments' => array(
      'configure quotes',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'uc_weightquote.admin.inc',
  );
  $items['admin/store/settings/quotes/weightquote/%/delete'] = array(
    'title' => 'Delete weight quote method',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'uc_weightquote_admin_method_confirm_delete',
      5,
    ),
    'access arguments' => array(
      'configure quotes',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'uc_weightquote.admin.inc',
  );
  return $items;
}