You are here

pay.menu.inc in Pay 7

Same filename and directory in other branches
  1. 6 includes/pay.menu.inc

Menu callbacks and supporting functinos for the Payment API.

File

includes/pay.menu.inc
View source
<?php

/**
 * @file
 * Menu callbacks and supporting functinos for the Payment API.
 */

/**
 * Implementation of hook_menu().
 */
function pay_menu_menu() {
  return array(
    'admin/config/pay' => array(
      'title' => 'Payments',
      'description' => 'Payment module settings',
      'position' => 'right',
      'weight' => 10,
      'page callback' => 'system_admin_menu_block_page',
      'access arguments' => array(
        'access administration pages',
      ),
      'file' => 'system.admin.inc',
      'file path' => drupal_get_path('module', 'system'),
    ),
    'admin/config/pay/settings' => array(
      'title' => 'Payment settings',
      'page callback' => 'pay_admin_overview',
      'access arguments' => array(
        'administer pay',
      ),
      'file' => 'pay.admin.inc',
      'file path' => drupal_get_path('module', 'pay') . '/includes',
      'description' => 'Configure payment methods and administer payment settings.',
    ),
    'admin/config/pay/method' => array(
      'title' => 'Payment methods',
      'page callback' => 'pay_admin_method_overview',
      'access arguments' => array(
        'administer pay',
      ),
      'file' => 'pay.admin.inc',
      'file path' => drupal_get_path('module', 'pay') . '/includes',
      'description' => 'Manage payment methods, such as gateways services and custom payments.',
    ),
    'admin/config/pay/method/add' => array(
      'title' => 'Add a payment method',
      'page callback' => 'drupal_get_form',
      'page arguments' => array(
        'pay_admin_method_form',
      ),
      'access arguments' => array(
        'administer pay',
      ),
      'file' => 'pay.admin.inc',
      'file path' => drupal_get_path('module', 'pay') . '/includes',
      'type' => MENU_LOCAL_ACTION,
    ),
    'admin/config/pay/method/%pay_method/edit' => array(
      'title' => 'Edit payment method',
      'page callback' => 'drupal_get_form',
      'page arguments' => array(
        'pay_admin_method_form',
        4,
      ),
      'access arguments' => array(
        'administer pay',
      ),
      'file' => 'pay.admin.inc',
      'file path' => drupal_get_path('module', 'pay') . '/includes',
    ),
    'admin/config/pay/method/%pay_method/delete' => array(
      'title' => 'Delete',
      'page callback' => 'drupal_get_form',
      'page arguments' => array(
        'pay_method_delete_confirm',
        4,
      ),
      'access arguments' => array(
        'administer pay',
      ),
      'file' => 'pay.admin.inc',
      'file path' => drupal_get_path('module', 'pay') . '/includes',
    ),
    'pay/transaction/pay/%pay_transaction' => array(
      'title' => 'Transaction details',
      'page callback' => 'theme',
      'page arguments' => array(
        'pay_transaction',
        3,
      ),
      'access arguments' => array(
        'administer payments for any form',
      ),
    ),
    'pay/transaction/%pay_transaction/%' => array(
      'title callback' => 'pay_transaction_action_title',
      'title arguments' => array(
        2,
        3,
      ),
      'page callback' => 'pay_transaction_do_action',
      'page arguments' => array(
        2,
        3,
        TRUE,
      ),
      'access callback' => 'pay_transaction_valid_action',
      'access arguments' => array(
        2,
        3,
      ),
    ),
    'pay/gateway/response/%pay_activity' => array(
      'title' => 'Transaction activity response',
      'page callback' => 'pay_gateway_response',
      'page arguments' => array(
        3,
      ),
      'access arguments' => array(
        'access content',
      ),
    ),
    'user/%user_category/edit/pay' => array(
      'title' => 'Payment settings',
      'page callback' => 'pay_user_settings_page',
      'page arguments' => array(
        1,
      ),
      'access callback' => 'pay_user_settings_access',
      'access arguments' => array(
        1,
      ),
      'load arguments' => array(
        '%map',
        '%index',
      ),
      'type' => MENU_LOCAL_TASK,
      'weight' => 20,
    ),
  );
}

Functions

Namesort descending Description
pay_menu_menu Implementation of hook_menu().