update order status after order creation i try to update status like this

function module_order($op, &amp;$arg1, $arg2) {
  switch ($op) {
      case 'update':
      $money = 'Cash';
      if (isset($arg1-&gt;custompane) &amp;&amp; $arg1-&gt;custompane == $money) $arg1-&gt;order_status = 'completed';
      break;
    }
}


It does not work.

What do I do wrong?
Use conditional actions to achieve this. Conditional actions are part of Ubercart.