function uc_cart_menu in Ubercart 6.2
Same name and namespace in other branches
- 5 uc_cart/uc_cart.module \uc_cart_menu()
- 7.3 uc_cart/uc_cart.module \uc_cart_menu()
Implements hook_menu().
File
- uc_cart/
uc_cart.module, line 23
Code
function uc_cart_menu() {
$items = array();
$items['admin/store/settings/cart'] = array(
'title' => 'Cart settings',
'description' => 'Configure the cart settings.',
'page callback' => 'uc_cart_cart_settings_overview',
'access arguments' => array(
'administer store',
),
'file' => 'uc_cart.admin.inc',
);
$items['admin/store/settings/cart/overview'] = array(
'title' => 'Overview',
'description' => 'View the cart settings.',
'access arguments' => array(
'administer store',
),
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['admin/store/settings/cart/edit'] = array(
'title' => 'Edit',
'description' => 'Edit the cart settings.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'uc_cart_cart_settings_form',
),
'access arguments' => array(
'administer store',
),
'type' => MENU_LOCAL_TASK,
'weight' => -5,
'file' => 'uc_cart.admin.inc',
);
$items['admin/store/settings/cart/edit/basic'] = array(
'title' => 'Cart settings',
'description' => 'Edit the basic cart settings.',
'access arguments' => array(
'administer store',
),
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['admin/store/settings/cart/edit/panes'] = array(
'title' => 'Cart panes',
'description' => 'Edit the pane settings for the cart view page.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'uc_cart_cart_panes_form',
),
'access arguments' => array(
'administer store',
),
'type' => MENU_LOCAL_TASK,
'weight' => -5,
'file' => 'uc_cart.admin.inc',
);
$items['admin/store/settings/cart/edit/block'] = array(
'title' => 'Cart block',
'description' => 'Edit the settings for the shopping cart block.',
'page callback' => 'uc_cart_block_edit_info',
'access arguments' => array(
'administer store',
),
'type' => MENU_LOCAL_TASK,
'weight' => 0,
'file' => 'uc_cart.admin.inc',
);
$items['admin/store/settings/checkout'] = array(
'title' => 'Checkout settings',
'description' => 'Configure the checkout settings.',
'page callback' => 'uc_cart_checkout_settings_overview',
'access arguments' => array(
'administer store',
),
'file' => 'uc_cart.admin.inc',
);
$items['admin/store/settings/checkout/overview'] = array(
'title' => 'Overview',
'description' => 'View the checkout settings.',
'access arguments' => array(
'administer store',
),
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
'file' => 'uc_cart.admin.inc',
);
$items['admin/store/settings/checkout/edit'] = array(
'title' => 'Edit',
'description' => 'Edit the cart settings.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'uc_cart_checkout_settings_form',
),
'access arguments' => array(
'administer store',
),
'type' => MENU_LOCAL_TASK,
'weight' => -5,
'file' => 'uc_cart.admin.inc',
);
$items['admin/store/settings/checkout/edit/basic'] = array(
'title' => 'Checkout settings',
'description' => 'Edit the basic checkout settings.',
'access arguments' => array(
'administer store',
),
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['admin/store/settings/checkout/edit/panes'] = array(
'title' => 'Checkout panes',
'description' => 'Edit the pane settings for the checkout page.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'uc_cart_checkout_panes_form',
),
'access arguments' => array(
'administer store',
),
'type' => MENU_LOCAL_TASK,
'weight' => -5,
'file' => 'uc_cart.admin.inc',
);
$items['admin/store/settings/checkout/edit/messages'] = array(
'title' => 'Checkout messages',
'description' => 'Edit the messages for the checkout completion page.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'uc_cart_checkout_messages_form',
),
'access arguments' => array(
'administer store',
),
'type' => MENU_LOCAL_TASK,
'weight' => 0,
'file' => 'uc_cart.admin.inc',
);
$items['admin/store/settings/checkout/edit/fields'] = array(
'title' => 'Address fields',
'description' => 'Edit the address field settings.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'uc_store_address_fields_form',
),
// missing?
'access arguments' => array(
'administer store',
),
'type' => MENU_LOCAL_TASK,
'weight' => 5,
'file' => 'uc_cart.admin.inc',
);
$items['cart'] = array(
'title' => 'Shopping cart',
'description' => 'View/modify the contents of your shopping cart or proceed to checkout.',
'page callback' => 'uc_cart_view',
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
'file' => 'uc_cart.pages.inc',
);
$items['cart/checkout'] = array(
'title' => 'Checkout',
'description' => 'Purchase the items in your shopping cart.',
'page callback' => 'uc_cart_checkout',
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
'file' => 'uc_cart.pages.inc',
);
$items['cart/checkout/review'] = array(
'title' => 'Review order',
'description' => 'Review an order before final submission.',
'page callback' => 'uc_cart_checkout_review',
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
'file' => 'uc_cart.pages.inc',
);
$items['cart/checkout/complete'] = array(
'title' => 'Order complete',
'description' => 'Display information upon completion of an order.',
'page callback' => 'uc_cart_checkout_complete',
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
'file' => 'uc_cart.pages.inc',
);
return $items;
}