I am trying to set up a rule to redirect a user to their content profile. I have two different content profiles and 5 different roles that use either one of the content profile types I have made. Right now one rule is setup like this (view attached image)

Here is the exported rule:

array (
  'rules' => 
  array (
    'rules_redirect_after_logging_in_notary' => 
    array (
      '#type' => 'rule',
      '#set' => 'event_user_login',
      '#label' => 'Redirect after logging in - Notary',
      '#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 => 10,
              1 => 6,
              2 => 8,
            ),
            'operation' => 'AND',
            '#argument map' => 
            array (
              'user' => 'account',
            ),
          ),
          '#type' => 'condition',
        ),
        1 => 
        array (
          '#weight' => 0,
          '#info' => 
          array (
            'label' => 'Logged in user has his Notary Profile created',
            'arguments' => 
            array (
              'user' => 
              array (
                'type' => 'user',
                'label' => 'User',
              ),
            ),
            'module' => 'Content Profile',
          ),
          '#name' => 'content_profile_user_has_profile_condition',
          '#settings' => 
          array (
            'type' => 'notary_profile',
            '#argument map' => 
            array (
              'user' => 'account',
            ),
          ),
          '#type' => 'condition',
        ),
      ),
      '#actions' => 
      array (
        0 => 
        array (
          '#type' => 'action',
          '#settings' => 
          array (
            'type' => 'notary_profile',
            '#argument map' => 
            array (
              'user' => 'account',
              'profile_node' => 'profile_node_notary',
            ),
          ),
          '#name' => 'content_profile_action_load',
          '#info' => 
          array (
            'label' => 'Load logged in user\'s Notary Profile',
            'arguments' => 
            array (
              'user' => 
              array (
                'type' => 'user',
                'label' => 'User, whose profile should be loaded',
              ),
            ),
            'new variables' => 
            array (
              'profile_node_notary' => 
              array (
                'type' => 'node',
                'label' => 'Content Profile',
              ),
            ),
            'module' => 'Content Profile',
          ),
          '#weight' => 0,
        ),
      ),
      '#version' => 6003,
    ),
  ),
)
CommentFileSizeAuthor
notary-rule.jpg58.88 KBcarrierawks

Comments

tr’s picture

Status: Active » Closed (outdated)

I don't see a question in the above post - you didn't mention what problems you were having, if any...

Regardless, if you continue to have a problem with the current versions of Drupal and Rules please open a new issue with details about how to reproduce your problem, what errors you're gettings, what you've tried that didn't work, etc.