function uc_payment_condition_method_form in Ubercart 5
File
- payment/
uc_payment/ uc_payment_workflow.inc, line 167 - This file contains the Workflow-ng hooks and functions necessary to make the order related entity, conditions, events, and actions work.
Code
function uc_payment_condition_method_form($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;
}