I am using role signup to allow users to select a role when registering.

I'm also using workflow_ng heavily now, especially for all re-directs. But I can not seem to get workflow to redirect a user after they register.

My configuration goes like this:
- On register:
- Conditions: if user has role(s) [my role] **Here I've tried both 'registered user' and 'active user'
- Actions: page redirect

Here is my config export:

array (
  'cfg_17' => 
  array (
    '#type' => 'configuration',
    '#altered' => false,
    '#event' => 'user_insert',
    '#label' => 'On register, if merchant silver, redirect to custom page',
    '#active' => 1,
    '#module' => 'workflow-ng',
    0 => 
    array (
      '#type' => 'condition',
      '#name' => 'workflow_ng_condition_user_hasrole',
      '#argument map' => 
      array (
        'account' => 'user',
      ),
      '#settings' => 
      array (
        'roles' => 
        array (
          0 => 12,
        ),
        'operation' => 'OR',
      ),
    ),
    1 => 
    array (
      '#type' => 'action',
      '#name' => 'workflow_ng_action_drupal_goto',
      '#settings' => 
      array (
        'path' => 'node/44',
        'path_args' => 
        array (
        ),
        'query' => '',
        'query_args' => 
        array (
        ),
        'fragment' => '',
        'fragment_args' => 
        array (
        ),
        'force' => 1,
        'override' => 1,
      ),
    ),
    '#name' => 'cfg_17',
  ),
)

I'm assuming that role signup module is not allowing over-ride. Can I gt around this in some way? any way for the mods to play nice?

OR, could the all powerful workflow manage the same functions as role signup - so I need one less module?

Thanks in advance for your help!

Scott

Comments

fago’s picture

It could do it yes, but you need a way to detect when it should add which role. It might be that roles added through role signup aren't detected properly immediate. That depends on how the module adds roles.