array ( 'rules' => array ( 'rules_change_order_status_to_processing_when_attributes_has_been_changed' => array ( '#type' => 'rule', '#set' => 'event_uc_order_attributes_update', '#label' => 'Change order status to processing when attributes has been changed', '#active' => 1, '#weight' => '0', '#categories' => array ( ), '#status' => 'custom', '#conditions' => array ( 0 => array ( '#type' => 'condition', '#settings' => array ( 'text1' => '[old_attributes:uc_order_attributes_color]', 'text2' => '[new_attributes:uc_order_attributes_color]', 'regex' => 0, '#eval input' => array ( 'token_rules_input_evaluator' => array ( 'text1' => array ( 0 => 'old_attributes', 1 => ':global', ), 'text2' => array ( 0 => 'new_attributes', 1 => ':global', ), ), ), ), '#name' => 'rules_condition_text_compare', '#info' => array ( 'label' => 'Textual comparison', 'arguments' => array ( 'text1' => array ( 'label' => 'Text 1', 'type' => 'string', ), 'text2' => array ( 'label' => 'Text 2', 'type' => 'string', ), ), 'module' => 'Rules', ), '#negate' => 1, '#weight' => 0, ), ), '#actions' => array ( 0 => array ( '#type' => 'action', '#settings' => array ( 'uc_order_id' => '[uc_order_product:uc_order_product_order_id]', '#argument map' => array ( 'uc_order_loaded' => 'uc_order', ), '#eval input' => array ( 'token_rules_input_evaluator' => array ( 'uc_order_id' => array ( 0 => 'uc_order_product', 1 => ':global', ), ), ), ), '#name' => 'uc_rules_load_order_by_id', '#info' => array ( 'label' => 'Load Ubercart Order by id', 'module' => 'Ubercart Rules', 'arguments' => array ( ), 'eval input' => array ( 0 => 'uc_order_id', ), 'new variables' => array ( 'uc_order' => array ( 'type' => 'uc_order', 'label' => 'Loaded Ubercart Order', ), ), ), '#weight' => 0, ), 1 => array ( '#weight' => 1, '#info' => array ( 'label' => 'Updates the order status', 'module' => 'Ubercart Rules', 'arguments' => array ( 'uc_order' => array ( 'type' => 'uc_order', 'label' => 'Order', ), ), 'eval input' => array ( 0 => 'comment', ), ), '#name' => 'uc_rules_order_update_status', '#settings' => array ( 'order_status' => 'processing', 'comment' => NULL, ), '#type' => 'action', ), 2 => array ( '#type' => 'action', '#settings' => array ( 'severity' => '5', 'type' => 'order_attributes', 'message' => 'Order [uc_order:uc_order_id]: changed [old_attributes:uc_order_attributes_color] to [new_attributes:uc_order_attributes_color]', 'link' => '', '#eval input' => array ( 'token_rules_input_evaluator' => array ( 'type' => array ( 0 => ':global', ), 'message' => array ( 0 => 'uc_order', 1 => 'old_attributes', 2 => 'new_attributes', 3 => ':global', ), 'link' => array ( 0 => ':global', ), ), ), ), '#name' => 'rules_action_watchdog', '#info' => array ( 'label' => 'Log to watchdog', 'module' => 'System', 'eval input' => array ( 0 => 'type', 1 => 'message', 2 => 'link', ), ), '#weight' => 10, ), ), '#version' => 6003, ), ), )