You are here

function hook_uc_payment_method_alter in Ubercart 8.4

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

Alter payment methods.

Parameters

$methods: Array of payment methods plugins passed by reference.

1 invocation of hook_uc_payment_method_alter()
PaymentMethodManager::__construct in payment/uc_payment/src/Plugin/PaymentMethodManager.php
Constructs a PaymentMethodManager object.

File

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

Code

function hook_uc_payment_method_alter(&$methods) {

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