Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hello,
I have a question, please tell me how can I set by "Flag" and "Rules" module that an entered user automatically, could adds the other users.
Thanks!
Comments
Comment #1
shabana.navas CreditAttribution: shabana.navas commentedBasically, if you mean you would like to flag other users like in a 'friendship' type flag, when a new user is created, all you need to do is:
1. Create a flag which flags users, called 'flag users'
2. Create a rule where the event could be 'After saving a new user account'
a. Create an action to that rule where 'flag user' is the action
a. Then, you select the 'flag users' flag which you created earlier
b. The user to flag: you can use the data selector to select whom you would like to flag or alternatively, use the direct input to specifically add a userid.
c. User on whose behalf to flag: site:current-user or whatever you choose
d. Click save.
That's all you need. So now, every time a new user is saved, the rule will automatically fire to flag the users of your preference.
Comment #2
Hadiseh CreditAttribution: Hadiseh commentedThank you!