function uc_payment_token_info in Ubercart 8.4
Same name and namespace in other branches
- 7.3 payment/uc_payment/uc_payment.tokens.inc \uc_payment_token_info()
Implements hook_token_info().
File
- payment/
uc_payment/ uc_payment.tokens.inc, line 14 - Token hooks for the uc_payment module.
Code
function uc_payment_token_info() {
$order['payment-method'] = [
'name' => t('Payment method'),
'description' => t('The payment method of the order.'),
];
$order['payment-balance'] = [
'name' => t('Balance'),
'description' => t('The payment balance of the order'),
];
return [
'tokens' => [
'uc_order' => $order,
],
];
}