You are here

function uc_order_condition_delivery_country in Ubercart 5

Same name and namespace in other branches
  1. 8.4 uc_order/uc_order.rules.inc \uc_order_condition_delivery_country()
  2. 6.2 uc_order/uc_order.ca.inc \uc_order_condition_delivery_country()
  3. 7.3 uc_order/uc_order.rules.inc \uc_order_condition_delivery_country()
2 string references to 'uc_order_condition_delivery_country'
uc_taxes_update_6 in uc_taxes/uc_taxes.install
uc_usps_configuration in shipping/uc_usps/uc_usps.module
Implementation of hook_configuration().

File

uc_order/uc_order_workflow.inc, line 271
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_delivery_country($order, $settings) {
  return in_array($order->delivery_country, $settings['countries']);
}