You are here

function hook_payment_method_alter in Ubercart 6.2

Alter payment methods.

Parameters

$methods: Payment methods passed by reference.

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

File

docs/hooks.php, line 1128
These are the hooks that are invoked by the Ubercart core.

Code

function hook_payment_method_alter(&$methods) {

  // Change the title of all methods.
  foreach ($methods as &$method) {

    // $method was passed by reference.
    $method['title'] = t('Altered method @original', array(
      '@original' => $method['title'],
    ));
  }
}