You are here

function commerce_purchase_order_menu in Commerce Purchase Order 7

Implements hook_menu().

File

./commerce_purchase_order.module, line 13
Provides an example payment method for Drupal Commerce for testing and development.

Code

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

  // Add a menu item for capturing authorizations.
  $items['admin/commerce/orders/%commerce_order/payment/%commerce_payment_transaction/po-validate'] = array(
    'title' => 'Validate',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'commerce_purchase_order_validate_form',
      3,
      5,
    ),
    'access callback' => 'commerce_purchase_order_validate_access',
    'access arguments' => array(
      3,
      5,
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'context' => MENU_CONTEXT_INLINE,
    'weight' => 2,
  );
  return $items;
}