Hook into the registration handler

emergingdzns - 1 month ago

I need to perform some additional tasks on a user account after they register. I need to create some new table entries and such for a specific module. So I'm wondering if there's a way to "listen" on the register form handler without having to modify any of the core code? I have published the module but there's no events or anything I can find outside of the core.

Answer

- 1 month ago

You could change ANY code in Pyro, without modifying the core.

Try to add the UserWasCreated listener to your addon service provider.

piterden - 1 month ago

You could change ANY code in Pyro, without modifying the core.

Try to add the UserWasCreated listener to your addon service provider.

emergingdzns - 1 month ago

Thanks @piterden that's actually exactly what I needed. I didn't notice the $listeners in the service provider. Duh.

piterden - 1 month ago

NP, man ))