Hi folks, I am newbie with Rules, but it is really swiss knife :-)
but I do not know, how to set this rule:
automatically create new content profile after so after new user account creation (new user´s registration or new import of users, and so on.)
(of course I have set CP with "automatically node-titles", and no other items are mandatory..)

Could be drupaller so kind and help me, please?

Comments

bensemmel’s picture

Perhaps this can help you, please find attached the export of a rule to create a new content profile of the type "user settings" (change accordingly to your contetnt type) after user creation. I don't know if that works for user import.

So just copy the code and import via the rules import function and adjust it to your needs.

array (
  'rules' => 
  array (
    'rules_1' => 
    array (
      '#type' => 'rule',
      '#set' => 'event_user_insert',
      '#label' => 'User creation: Settings Page',
      '#active' => 1,
      '#weight' => '0',
      '#status' => 'custom',
      '#conditions' => 
      array (
      ),
      '#actions' => 
      array (
        1 => 
        array (
          '#weight' => 0,
          '#info' => 
          array (
            'label' => 'Add new User Settings',
            'label callback' => false,
            'arguments' => 
            array (
              'author' => 
              array (
                'type' => 'user',
                'label' => 'User, who is set as author',
              ),
              'title' => 
              array (
                'type' => 'string',
                'label' => 'Title',
                'description' => 'The title of the newly created content.',
              ),
            ),
            'new variables' => 
            array (
              'node_added_user_settings' => 
              array (
                'label' => 'new content user settings',
                'label callback' => false,
                'type' => 'node',
                'save' => true,
              ),
            ),
            'module' => 'Node',
          ),
          '#name' => 'rules_action_add_node',
          '#settings' => 
          array (
            'title' => 'Settings [account:user]',
            'type' => 'user_settings',
            'node_access' => 0,
            '#argument map' => 
            array (
              'author' => 'account',
              'node_added' => 'node_added_user_settings',
            ),
            '#eval input' => 
            array (
              'token_rules_input_evaluator' => 
              array (
                'title' => 
                array (
                  0 => 'account',
                ),
              ),
            ),
          ),
          '#type' => 'action',
        ),
      ),
      '#version' => 6003,
      '#categories' => 
      array (
        0 => 'user creation',
      ),
    ),
  ),
)
fago’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

mitchell’s picture

Component: Provided module integration » Provided Module Integrations

Updated component.