function uc_order_condition_billing_country in Ubercart 6.2
Same name and namespace in other branches
- 8.4 uc_order/uc_order.rules.inc \uc_order_condition_billing_country()
- 5 uc_order/uc_order_workflow.inc \uc_order_condition_billing_country()
- 7.3 uc_order/uc_order.rules.inc \uc_order_condition_billing_country()
Check an order's billing country.
See also
uc_order_condition_billing_country_form()
1 string reference to 'uc_order_condition_billing_country'
- uc_order_ca_condition in uc_order/
uc_order.ca.inc - Implements hook_ca_condition().
File
- uc_order/
uc_order.ca.inc, line 620 - 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_billing_country($order, $settings) {
return in_array($order->billing_country, $settings['countries']);
}