You are here

function paypal_payment_pps_menu in PayPal for Payment 7

Implements hook_menu().

File

paypal_payment_pps/paypal_payment_pps.module, line 11
Contains hook implementations and global functions.

Code

function paypal_payment_pps_menu() {
  $items['paypal_payment_pps/redirect/%entity_object'] = array(
    'load arguments' => array(
      'payment',
    ),
    'title' => 'Go to payment server',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'paypal_payment_pps_form_redirect',
      2,
    ),
    'access callback' => 'paypal_payment_pps_form_redirect_access',
    'access arguments' => array(
      2,
    ),
    'type' => MENU_CALLBACK,
  );
  $items['paypal_payment_pps/return/%entity_object/%'] = array(
    'load arguments' => array(
      'payment',
    ),
    'title' => 'PayPal Payments Standard return url',
    'page callback' => 'paypal_payment_pps_return',
    'page arguments' => array(
      2,
      3,
    ),
    'access callback' => 'paypal_payment_pps_return_access',
    'access arguments' => array(
      2,
      3,
    ),
    'type' => MENU_CALLBACK,
  );
  $items['paypal_payment_pps/return/cancel/%entity_object/%'] = array(
    'load arguments' => array(
      'payment',
    ),
    'title' => 'PayPal Payments Standard return url',
    'page callback' => 'paypal_payment_pps_return_cancel',
    'page arguments' => array(
      3,
      4,
    ),
    'access callback' => 'paypal_payment_pps_return_access',
    'access arguments' => array(
      3,
      4,
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}