Skip navigation
Help

hook_uc_payment_method_alter

7 uc_payment.api.php hook_uc_payment_method_alter(&$methods)

Alter payment methods.

Parameters

$methods: Array of payment methods passed by reference. Array is structured like the return value of hook_uc_payment_method().

Related topics

1 invocation of hook_uc_payment_method_alter()

File

ubercart/payment/uc_payment/uc_payment.api.php, line 220
Hooks provided by the Payment module.

Code

function hook_uc_payment_method_alter(&$methods) {
  // Change the title of the Check payment method.
  $methods['check']['title'] = t('Cheque');
}