You are here

function hook_uc_payment_gateway_alter in Ubercart 7.3

Alters payment gateways.

Parameters

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

1 invocation of hook_uc_payment_gateway_alter()
_uc_payment_gateway_list in payment/uc_payment/uc_payment.module
Builds a list of payment gateways defined in the enabled modules.

File

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