You are here

function uc_order_action_update_status in Ubercart 8.4

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

Updates an order's status.

See also

uc_order_action_update_status_form()

1 string reference to 'uc_order_action_update_status'
uc_order_rules_action_info in uc_order/uc_order.rules.inc
Implements hook_rules_action_info().

File

uc_order/uc_order.rules.inc, line 396
Rules integration for order-related entity events, conditions, and actions.

Code

function uc_order_action_update_status($order, $status) {
  $order
    ->setStatusId($status)
    ->save();
}