Hello all.
I have a requirement at work that means i have to be able to call a custom hook in a EE class thats not got any hooks.
To do this i had to put the hook there and its supporting code ( =&get;_instance() )
So i was thinking that part of this project i am on will probably mean doing this a few times in a range of EE core files.
My question to the EE Community is this:
Would Plugin that lets you choose the file, class, function and add in custom hooks be of use to anyone?
Im thinking of writing it and it will have the ability to load all core files, add-on etc and let you specify a hook name and position in the function to add the hook to - im thinking that auto adding hooks would work for the start and end of a function but not sure on adding a hook to the middle of a function (this could be done if i display the function code and let the user add in the hook manually)
This could then allow third party add-ons to use the custom hooks to build even more functionality.
Reason for posting this is that i am building a plugin that creates/edits/deletes tables when channels are created/edited/deleted in order to use channels to make a relational database for a work project and the channels functions have no hooks.
Thoughts?