array ( 'rules' => array ( 'rules_4' => array ( '#type' => 'rule', '#set' => 'event_profile_update', '#label' => 'profile my update', '#active' => 1, '#weight' => '0', '#categories' => array ( ), '#status' => 'custom', '#conditions' => array ( 0 => array ( 1 => array ( '#weight' => -1, '#info' => array ( 'label' => 'form_state post:modal = 1', 'label callback' => false, 'arguments' => array ( 'text1' => array ( 'label' => 'Text 1', 'type' => 'string', ), 'text2' => array ( 'label' => 'Text 2', 'type' => 'string', ), ), 'module' => 'Rules', ), '#name' => 'rules_condition_text_compare', '#settings' => array ( 'text1' => '', 'text2' => '1', 'regex' => 0, '#eval input' => array ( 'rules_input_evaluator_php' => array ( 'text1' => array ( 0 => 'form_state', ), ), ), ), '#type' => 'condition', ), '#weight' => -5, 0 => array ( '#weight' => 0, '#type' => 'condition', '#settings' => array ( 'text1' => '', 'text2' => 'save', 'regex' => 0, '#eval input' => array ( 'rules_input_evaluator_php' => array ( 'text1' => array ( 0 => 'form_state', ), ), ), ), '#name' => 'rules_condition_text_compare', '#info' => array ( 'label' => 'form_state post:op = save', 'label callback' => false, 'arguments' => array ( 'text1' => array ( 'label' => 'Text 1', 'type' => 'string', ), 'text2' => array ( 'label' => 'Text 2', 'type' => 'string', ), ), 'module' => 'Rules', ), ), '#type' => 'OR', ), 1 => array ( '#weight' => 0, '#type' => 'condition', '#settings' => array ( 'roles' => array ( 0 => 5, ), 'operation' => 'OR', '#argument map' => array ( 'user' => 'user', ), ), '#name' => 'rules_condition_user_hasrole', '#info' => array ( 'label' => 'User has role(s)', 'arguments' => array ( 'user' => array ( 'type' => 'user', 'label' => 'User', ), ), 'module' => 'User', ), ), ), '#actions' => array ( 0 => array ( '#weight' => 0, '#info' => array ( 'label' => 'Log to watchdog', 'module' => 'System', 'eval input' => array ( 0 => 'type', 1 => 'message', 2 => 'link', ), ), '#name' => 'rules_action_watchdog', '#settings' => array ( 'severity' => '6', 'type' => 'rules', 'message' => 'profile updated my rule!', 'link' => '', ), '#type' => 'action', ), ), ), ), )