function uc_order_condition_order_state in Ubercart 8.4
Same name and namespace in other branches
- 7.3 uc_order/uc_order.rules.inc \uc_order_condition_order_state()
Checks the current order state.
File
- uc_order/
uc_order.rules.inc, line 154 - Rules integration for order-related entity events, conditions, and actions.
Code
function uc_order_condition_order_state($order, $order_state) {
return $order
->getStateId() == $order_state;
}