function uc_payment_settings_overview in Ubercart 5
Same name and namespace in other branches
- 6.2 payment/uc_payment/uc_payment.admin.inc \uc_payment_settings_overview()
Display the payment settings overview.
1 string reference to 'uc_payment_settings_overview'
- uc_payment_menu in payment/
uc_payment/ uc_payment.module - Implementation of hook_menu().
File
- payment/
uc_payment/ uc_payment.module, line 320
Code
function uc_payment_settings_overview() {
$sections[] = array(
'edit' => 'admin/store/settings/payment/edit',
'title' => t('Payment settings'),
'items' => array(
t('Payment tracking is !status.', array(
'!status' => variable_get('uc_payment_tracking', TRUE) ? t('enabled') : t('disabled'),
)),
t('Payments !status be deleted by approved users.', array(
'!status' => variable_get('uc_payment_deleting', TRUE) ? t('may') : t('may not'),
)),
t('Payments are !status in the order logs.', array(
'!status' => variable_get('uc_payment_logging', TRUE) ? t('tracked') : t('not tracked'),
)),
t('Default payment details message:<br />%message', array(
'%message' => variable_get('uc_default_payment_msg', t('Continue with checkout to complete payment.')),
)),
),
);
$methods = _payment_method_list();
foreach ($methods as $method) {
$items[] = t('!title is !status for checkout.', array(
'!title' => $method['name'],
'!status' => $method['checkout'] ? t('enabled') : t('disabled'),
));
}
$sections[] = array(
'edit' => 'admin/store/settings/payment/edit/methods',
'title' => t('Payment methods'),
'items' => $items,
);
$items = array();
$gateways = _payment_gateway_list();
foreach ($gateways as $gateway) {
$items[] = t('!title is !status.', array(
'!title' => $gateway['title'],
'!status' => $gateway['enabled'] ? t('enabled') : t('disabled'),
));
}
$sections[] = array(
'edit' => 'admin/store/settings/payment/edit/gateways',
'title' => t('Payment gateways'),
'items' => $items,
);
$output = theme('uc_settings_overview', $sections);
return $output;
}