12-03-2016, 12:55 PM
all events are global, they get called everytime the event happens.
that means that if you register an aftersave event, your handler will be called on ALL the saves in the application. that is why you normally "protect" your handler with something like:
if (module is my module)....
in this case your condition will check for both conditions:
if (module is the one that has the custom block and I have information to do something with my module)....
that means that if you register an aftersave event, your handler will be called on ALL the saves in the application. that is why you normally "protect" your handler with something like:
if (module is my module)....
in this case your condition will check for both conditions:
if (module is the one that has the custom block and I have information to do something with my module)....
Joe
TSolucio
TSolucio