function uc_credit_menu in Ubercart 5
Same name and namespace in other branches
- 6.2 payment/uc_credit/uc_credit.module \uc_credit_menu()
- 7.3 payment/uc_credit/uc_credit.module \uc_credit_menu()
Implementation of hook_menu().
File
- payment/
uc_credit/ uc_credit.module, line 42 - Defines the credit card payment method and hooks in payment gateways.
Code
function uc_credit_menu($may_cache) {
if ($may_cache) {
$items[] = array(
'path' => 'cart/checkout/credit/cvv_info',
'title' => t('CVV information'),
'callback' => 'uc_credit_cvv_info',
'access' => user_access('access content'),
'type' => MENU_CALLBACK,
);
$items[] = array(
'path' => 'admin/store/settings/payment/cc_encrypt',
'title' => t('Encrypt existing credit card data'),
'callback' => 'uc_credit_encrypt_existing',
'access' => user_access('administer credit cards'),
'type' => MENU_CALLBACK,
);
}
else {
if (is_numeric(arg(3))) {
$items[] = array(
'path' => 'admin/store/orders/' . arg(3) . '/credit',
'title' => t('Credit card terminal: Order @order_id', array(
'@order_id' => arg(3),
)),
'description' => t('Process a credit card payment for order @order_id.', array(
'@order_id' => arg(3),
)),
'callback' => 'uc_credit_terminal',
'callback arguments' => array(
arg(3),
),
'access' => user_access('process credit cards'),
'type' => MENU_CALLBACK,
);
}
}
return $items;
}