function commerce_paypal_wpp_menu in Commerce PayPal 7
Same name and namespace in other branches
- 7.2 modules/wpp/commerce_paypal_wpp.module \commerce_paypal_wpp_menu()
Implements hook_menu().
File
- modules/
wpp/ commerce_paypal_wpp.module, line 12 - Implements PayPal Website Payments Pro in Drupal Commerce checkout.
Code
function commerce_paypal_wpp_menu() {
$items = array();
// Add a menu item for capturing authorizations.
$items['admin/commerce/orders/%commerce_order/payment/%commerce_payment_transaction/paypal-wpp-capture'] = array(
'title' => 'Capture',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'commerce_paypal_wpp_capture_form',
3,
5,
),
'access callback' => 'commerce_paypal_wpp_capture_access',
'access arguments' => array(
3,
5,
),
'type' => MENU_DEFAULT_LOCAL_TASK,
'context' => MENU_CONTEXT_INLINE,
'weight' => 2,
'file' => 'includes/commerce_paypal_wpp.admin.inc',
);
return $items;
}