function payment_ubercart_uc_payment_method in Payment for Ubercart 7.2
Same name and namespace in other branches
- 7 payment_ubercart.module \payment_ubercart_uc_payment_method()
Implements hook_uc_payment_method().
File
- ./
payment_ubercart.module, line 107 - Hook implementations and shared functions.
Code
function payment_ubercart_uc_payment_method() {
$uc_payment_methods = array();
foreach (entity_load('payment_method') as $payment_method) {
if ($payment_method->enabled) {
$uc_payment_methods['payment_ubercart_' . $payment_method->pmid] = array(
'title' => $payment_method->title_generic,
'name' => $payment_method->title_specific,
'callback' => 'payment_ubercart_callback',
'checkout' => TRUE,
'weight' => 1,
);
}
}
return $uc_payment_methods;
}