function uc_order_condition_order_state in Ubercart 7.3
Same name and namespace in other branches
- 8.4 uc_order/uc_order.rules.inc \uc_order_condition_order_state()
Checks the current order state.
File
- uc_order/
uc_order.rules.inc, line 427 - Hooks and functions for uc_order Rules integration.
Code
function uc_order_condition_order_state($order, $order_state) {
return uc_order_status_data($order->order_status, 'state') == $order_state;
}