Hi,
I’m writing a plugin that does inserts and updates on a db table that triggers on OnDocFormSave, but I would also like the same plugin to handle OnDocFormDelete so I can also delete rows from the table.
I don’t particularly want to create a separate plugin for this event. Is there a variable or something that is accessible from the plugin that will tell me the name of the current event being triggered?
Thanks
-
☆ A M B ☆
- 24,524 Posts
Use a switch structure, and select both events when configuring the plugin.
Thats exactly what I need TobyL.
Thanks a lot.