function uc_order_condition_delivery_country in Ubercart 8.4
Same name and namespace in other branches
- 5 uc_order/uc_order_workflow.inc \uc_order_condition_delivery_country()
- 6.2 uc_order/uc_order.ca.inc \uc_order_condition_delivery_country()
- 7.3 uc_order/uc_order.rules.inc \uc_order_condition_delivery_country()
Checks that the order has one of the selected delivery countries.
File
- uc_order/
uc_order.rules.inc, line 170 - Rules integration for order-related entity events, conditions, and actions.
Code
function uc_order_condition_delivery_country($order, $countries) {
return in_array($order->delivery_country, $countries);
}