You are here

function uc_order_condition_delivery_country_form in Ubercart 6.2

Same name and namespace in other branches
  1. 5 uc_order/uc_order_workflow.inc \uc_order_condition_delivery_country_form()

See also

uc_order_condition_delivery_country()

File

uc_order/uc_order.ca.inc, line 546
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_delivery_country_form($form_state, $settings = array()) {
  $form['countries'] = uc_country_select(uc_get_field_name('country'));
  $form['countries']['#default_value'] = isset($settings['countries']) ? $settings['countries'] : NULL;
  $form['countries']['#multiple'] = TRUE;

  // $form['countries']['#required'] = TRUE;
  return $form;
}