I'm working on a logic hook that needs to be fired each time any record of any module is modified. Instead of creating a logic hook entry for each and every module in a sugar instance, is there a better way to go about implementing this functionality (doesn't necessarily have to be a logic hook)?
It'd probably be possible to write some code to programmatically add all of the logic hooks to all of the modules in the system, but then you'd have to handle the case where new modules are added to the system.
Another thought was use an application hook and check the module and action each time it gets fired, but all 3 of the application logic hooks seem to be UI focused and not run when non-UI things are run (such as API calls).
Any ideas?
Thanks!


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks