array ( 'rules' => array ( 'rules_3' => array ( '#type' => 'rule', '#set' => 'event_user_login', '#label' => 'Redirect after first login only', '#active' => 1, '#weight' => '0', '#categories' => array ( ), '#status' => 'custom', '#conditions' => array ( 0 => array ( '#weight' => 0, '#info' => array ( 'label' => 'User has role(s)', 'arguments' => array ( 'user' => array ( 'type' => 'user', 'label' => 'User', ), ), 'module' => 'User', ), '#name' => 'rules_condition_user_hasrole', '#settings' => array ( 'roles' => array ( 0 => 9, ), 'operation' => 'OR', '#argument map' => array ( 'user' => 'account', ), ), '#type' => 'condition', ), ), '#actions' => array ( 0 => array ( '#type' => 'action', '#settings' => array ( 'roles' => array ( 0 => 9, ), '#argument map' => array ( 'user' => 'account', ), ), '#name' => 'rules_action_user_removerole', '#info' => array ( 'label' => 'Remove user role', 'arguments' => array ( 'user' => array ( 'type' => 'user', 'label' => 'User whos roles should be changed', ), ), 'module' => 'User', ), '#weight' => 0, ), 2 => array ( '#weight' => 0, '#type' => 'action', '#settings' => array ( 'path' => 'civicrm/profile/edit', 'query' => 'reset=1&gid=3', 'fragment' => '', 'force' => 0, 'immediate' => 1, ), '#name' => 'rules_action_drupal_goto', '#info' => array ( 'label' => 'Page redirect', 'module' => 'System', 'eval input' => array ( 0 => 'path', 1 => 'query', 2 => 'fragment', ), ), ), ), ), ), 'rule_sets' => array ( ), )