You are here

function hook_uc_payment_method_alter in Ubercart 7.3

Same name and namespace in other branches
  1. 8.4 payment/uc_payment/uc_payment.api.php \hook_uc_payment_method_alter()

Alter payment methods.

Parameters

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

1 invocation of hook_uc_payment_method_alter()
_uc_payment_method_list in payment/uc_payment/uc_payment.module
Builds a list of payment methods defined in the enabled modules.

File

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');
}