You are here

function commerce_payleap_menu in Commerce Payleap 7

Implements hook_menu().

File

./commerce_payleap.module, line 43
Implements PayLeap payment services for use in Drupal Commerce.

Code

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

  // Add a menu item for capturing authorizations.
  $items['admin/commerce/orders/%commerce_order/payment/%commerce_payment_transaction/payleap-capture'] = array(
    'title' => 'Capture',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'commerce_payleap_capture_form',
      3,
      5,
    ),
    'access callback' => 'commerce_payleap_capture_access',
    'access arguments' => array(
      3,
      5,
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'context' => MENU_CONTEXT_INLINE,
    'weight' => 2,
    'file' => 'includes/commerce_payleap.admin.inc',
  );
  return $items;
}