Lack of interest Code event listeners in batch update users

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.


Well-known member
Please, could you add a new event listener in the batch update users ?

This would allow to add more feature to the batch update.

I did that on an add-on for a customer but it needs re-do at each update:
Edit the file library/XenForo/Deferred/UserAction.php.

Add before $userDw->save(); the following code :
XenForo_CodeEvent::fire('batch_update_users_actions', array($data, $userDw, $userModel));

The code to search is at line 145.

I think this would not just benefit me but other developers.
Upvote 0
This suggestion has been closed. Votes are no longer accepted.
What specifically are you looking to do?

It's already possible to extend Deferred classes using the load_class event listener.
My intend was to allow modification of new fields through the batch users.

I surely could extend it but it would mean I'd have to execute a datawriter call twice (once for the parent and once in my extend).
Unless there is some smarter way I missed ?
Top Bottom