Moodle Plugins directory: Bulk Change User Profile Fields | Moodle.org
Bulk Change User Profile Fields
You'll be able to select which fields to edit and it will update all the fields with the same value for selected users.
If the user already have any value on the field, it will be replaced, if the field is empty, it'll be filled and saved.
Since the bulk change user profile field plugin does not call the user_updated event, the other plugin's callback is not called.
Would it be possible to trigger a user_updated event when the user was updated:
(\core\event\user_updated::create_from_userid($u)->trigger();)
after saving the changed data:
(profile_save_data($user);)
Thanks.
I just release a new version that triggers \core\event\user_updated after update each user.
Hope you like it!
Best,
Daniel