You are here

function uc_order_condition_billing_country_form in Ubercart 5

Same name and namespace in other branches
  1. 6.2 uc_order/uc_order.ca.inc \uc_order_condition_billing_country_form()

File

uc_order/uc_order_workflow.inc, line 346
This file contains the Workflow-ng hooks and functions necessary to make the order related entity, conditions, events, and actions work.

Code

function uc_order_condition_billing_country_form($settings = array()) {
  $form['countries'] = uc_country_select(uc_get_field_name('country'));
  $form['countries']['#default_value'] = $settings['countries'];
  $form['countries']['#multiple'] = TRUE;
  $form['countries']['#required'] = TRUE;
  return $form;
}