function commerce_authnet_menu in Commerce Authorize.Net 7
Implements hook_menu().
File
- ./
commerce_authnet.module, line 52 - Implements Authorize.Net payment services for use in Drupal Commerce.
Code
function commerce_authnet_menu() {
$items = array();
// Add a menu item for capturing authorizations.
$items['admin/commerce/orders/%commerce_order/payment/%commerce_payment_transaction/authnet-aim-capture'] = array(
'title' => 'Capture',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'commerce_authnet_aim_capture_form',
3,
5,
),
'access callback' => 'commerce_authnet_aim_capture_access',
'access arguments' => array(
3,
5,
),
'type' => MENU_DEFAULT_LOCAL_TASK,
'context' => MENU_CONTEXT_INLINE,
'weight' => 2,
'file' => 'includes/commerce_authnet.admin.inc',
);
// Add a menu item for voiding transactions.
$items['admin/commerce/orders/%commerce_order/payment/%commerce_payment_transaction/authnet-aim-void'] = array(
'title' => 'Void',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'commerce_authnet_aim_void_form',
3,
5,
),
'access callback' => 'commerce_authnet_aim_void_access',
'access arguments' => array(
3,
5,
),
'type' => MENU_DEFAULT_LOCAL_TASK,
'context' => MENU_CONTEXT_INLINE,
'weight' => 2,
'file' => 'includes/commerce_authnet.admin.inc',
);
// Add a menu item for issuing credits.
$items['admin/commerce/orders/%commerce_order/payment/%commerce_payment_transaction/authnet-aim-credit'] = array(
'title' => 'Credit',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'commerce_authnet_aim_credit_form',
3,
5,
),
'access callback' => 'commerce_authnet_aim_credit_access',
'access arguments' => array(
3,
5,
),
'type' => MENU_DEFAULT_LOCAL_TASK,
'context' => MENU_CONTEXT_INLINE,
'weight' => 2,
'file' => 'includes/commerce_authnet.admin.inc',
);
return $items;
}