function uc_order_condition_check_order_status in Ubercart 6.2
Check the current order status.
See also
uc_order_condition_check_order_status_form()
1 string reference to 'uc_order_condition_check_order_status'
- uc_order_ca_condition in uc_order/
uc_order.ca.inc - Implements hook_ca_condition().
File
- uc_order/
uc_order.ca.inc, line 366 - This file contains the Conditional Actions hooks and functions necessary to make the order related entity, conditions, events, and actions work.
Code
function uc_order_condition_check_order_status($order, $settings) {
// Return TRUE if the order status matches.
return $order->order_status == $settings['order_status'];
}