Reputation: 139
I need to add a hook in onUserAfterDelete
to when the admin deletes an user his customer info (managed by my component) goes away too.
How can I do that? Where I put the function?
Thanks a lot!
Upvotes: 1
Views: 315
Reputation: 42582
Basically you need to create a plugin, which will be independent of the component itself.
You need:
onUserAfterDelete
.Some code to start with is already in another related answer.
Upvotes: 1