Skip navigation
Help

hook_uc_payment_gateway_alter

7 uc_payment.api.php hook_uc_payment_gateway_alter(&$gateways)

Alters payment gateways.

Parameters

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

Related topics

1 invocation of hook_uc_payment_gateway_alter()

File

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

Code

function hook_uc_payment_gateway_alter(&$gateways) {
  // Change the title of the test gateway.
  $gateways['test_gateway']['title'] = t('Altered test gateway title.');
}