Add role to new user¶
Version
You can apply this model as a recipe (Drupal 10.3 or later) to your own Drupal site:
1 2 3 4 5 6 7 8 9 10 11 |
|
Purpose¶
A variant of eca_lib_0029: «Add role to inserted or updated user». Except this variant is only concerned with new users, updated users are not processed.
Dependencies¶
- config
- node.type.article
- node.type.page
- taxonomy.vocabulary.tags
- user.role.content_editor
- module
- comment
- contextual
- eca_base
- eca_content
- eca_user
- file
- modeler_api
- node
- path
- system
- taxonomy
- toolbar
Used plugins¶
Events¶
Conditions¶
Actions¶
- User: switch current account
- Entity: set field value
- ECA: User already has role, exit msg.
- Display a message to the user
- ECA: Not a new user, exit msg.
- Token: set value
Changelog¶
v1¶
Initial version