function paymentreference_menu in Payment 7
Implements hook_menu().
File
- modules/
paymentreference/ paymentreference.module, line 11 - Hook implementations and general functions.
Code
function paymentreference_menu() {
$item['paymentreference/finish'] = array(
'title' => 'Payment reference finished',
'load arguments' => array(
'payment',
),
'page callback' => 'paymentreference_page_finish',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$item['paymentreference/pay/%paymentreference_instance/%/%'] = array(
'load arguments' => array(
3,
4,
),
'title' => 'Add a payment reference',
'title callback' => 'paymentreference_instance_title',
'title arguments' => array(
2,
),
'page callback' => 'paymentreference_page',
'page arguments' => array(
2,
3,
4,
),
'access callback' => 'paymentreference_instance_access',
'access arguments' => array(
2,
),
);
return $item;
}