function uc_order_condition_payment_method_form in Ubercart 6.2
File
- payment/
uc_payment/ uc_payment.ca.inc, line 240 - This file contains the Conditional Actions hooks and functions necessary to make the order related entity, conditions, events, and actions work.
Code
function uc_order_condition_payment_method_form($form_state, $settings = array()) {
foreach (_payment_method_list() as $method) {
$options[$method['id']] = $method['title'];
}
$form['payment_method'] = array(
'#type' => 'radios',
'#title' => t('Payment method'),
'#options' => $options,
'#default_value' => $settings['payment_method'],
);
return $form;
}