function _uc_payment_gateways_summarize in Ubercart 6.2
Returns an array of enabled payment gateways for the form summary.
1 string reference to '_uc_payment_gateways_summarize'
- uc_payment_gateways_form in payment/
uc_payment/ uc_payment.admin.inc - Displays an overview of the available payment gateways.
File
- payment/
uc_payment/ uc_payment.admin.inc, line 244 - Payment administration menu items.
Code
function _uc_payment_gateways_summarize($form, $gateways) {
$items = array();
foreach ($gateways as $gateway) {
$items[] = t('@title is @enabled.', array(
'@title' => $gateway['title'],
'@enabled' => $gateway['enabled'] ? t('enabled') : t('disabled'),
));
}
if (empty($items)) {
$items[] = t('No payment gateway modules are installed. Modules providing payment gateways must first be enabled on the !modules administration page under the "Ubercart - payment" fieldset.', array(
'!modules' => l(t('Modules'), 'admin/modules'),
));
}
return $items;
}