function uc_payment_gateway_select_form in Ubercart 5
Same name and namespace in other branches
- 6.2 payment/uc_payment/uc_payment.admin.inc \uc_payment_gateway_select_form()
1 string reference to 'uc_payment_gateway_select_form'
- uc_payment_gateway_select in payment/
uc_payment/ uc_payment.module - Select a payment gateway to process a payment when multiple gateways exist for a given payment method.
File
- payment/
uc_payment/ uc_payment.module, line 785
Code
function uc_payment_gateway_select_form($options, $method, $order_id, $amount, $data) {
$form['method'] = array(
'#type' => 'hidden',
'#value' => $method,
);
$form['order_id'] = array(
'#type' => 'hidden',
'#value' => $order_id,
);
$form['amount'] = array(
'#type' => 'hidden',
'#value' => $amount,
);
$form['p_data'] = array(
'#type' => 'hidden',
'#value' => $data,
);
$form['p_selected'] = array(
'#type' => 'select',
'#title' => t('Use gateway'),
'#options' => $options,
'#default_value' => variable_get('uc_payment_' . $method . '_gateway', ''),
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Process'),
);
return $form;
}