function uc_ajax_cart_menu in Ubercart AJAX Cart 6.2
Same name and namespace in other branches
- 5 uc_ajax_cart.module \uc_ajax_cart_menu()
- 6 uc_ajax_cart.module \uc_ajax_cart_menu()
- 7.2 uc_ajax_cart.module \uc_ajax_cart_menu()
File
- ./
uc_ajax_cart.module, line 20
Code
function uc_ajax_cart_menu() {
/** Default Settings URL **/
$items['admin/store/settings/uc_ajax_cart'] = array(
'title' => 'UC Ajax cart settings',
'description' => 'Configure the uc ajax cart settings.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'uc_ajax_cart_settings_overview',
),
'access arguments' => array(
'administer store',
),
'file' => 'uc_ajax_cart.admin.inc',
);
$items[UC_AJAX_CART_ADD_CALLBACK] = array(
'page callback' => 'uc_ajax_cart_callback',
'page arguments' => array(
'add',
),
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
);
$items[UC_AJAX_CART_REMOVE_CALLBACK] = array(
'page callback' => 'uc_ajax_cart_callback',
'page arguments' => array(
'remove',
),
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
);
$items[UC_AJAX_CART_SHOW_CALLBACK] = array(
'page callback' => 'uc_ajax_cart_callback',
'page arguments' => array(
'show',
),
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
);
$items[UC_AJAX_CART_LINK_CALLBACK] = array(
'page callback' => 'uc_ajax_cart_callback',
'page arguments' => array(
'link',
),
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
'file' => 'uc_cart_links.pages.inc',
);
$items[UC_AJAX_CART_UPDATE_CALLBACK] = array(
'page callback' => 'uc_ajax_cart_callback',
'page arguments' => array(
'update',
),
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
);
$items[UC_AJAX_CART_SHOW_VIEW_CALLBACK] = array(
'page callback' => 'uc_ajax_cart_callback',
'page arguments' => array(
'show-cart-view',
),
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
);
return $items;
}