You are here

function uc_order_condition_billing_country in Ubercart 7.3

Same name and namespace in other branches
  1. 8.4 uc_order/uc_order.rules.inc \uc_order_condition_billing_country()
  2. 5 uc_order/uc_order_workflow.inc \uc_order_condition_billing_country()
  3. 6.2 uc_order/uc_order.ca.inc \uc_order_condition_billing_country()

Checks that the order has one of the selected billing countries.

File

uc_order/uc_order.rules.inc, line 457
Hooks and functions for uc_order Rules integration.

Code

function uc_order_condition_billing_country($order, $countries) {
  return in_array($order->billing_country, $countries);
}