You are here

function uc_ajax_cart_menu in Ubercart AJAX Cart 6

Same name and namespace in other branches
  1. 5 uc_ajax_cart.module \uc_ajax_cart_menu()
  2. 6.2 uc_ajax_cart.module \uc_ajax_cart_menu()
  3. 7.2 uc_ajax_cart.module \uc_ajax_cart_menu()

override hook menu

Add default path's to listen

Return value

array path listener

See also

http://api.drupal.org/api/function/hook_theme/6

File

./uc_ajax_cart.module, line 45

Code

function uc_ajax_cart_menu() {
  $items = array();

  /** Ajax cart update URL **/

  //This URL recieve all ajax calls from product pages
  $items['cart/ajax/update'] = array(
    'title' => t('Shopping ajax cart'),
    'page callback' => 'uc_ajax_cart_handler',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );

  //This URL recieve all ajax calls cart view

  /**
  $items['cart/ajax/view'] = array(
    'title' => t('Shopping ajax cart view'),
    'page callback' => 'uc_ajax_cart_handler_update',
    'access arguments' => array('access content'),
    'type' => MENU_CALLBACK,
  );
  */
  return $items;
}