I've been poking around looking at hooks and ways to tie in new
features into Mediawiki via extensions, and it seems like unless a
hook happens to be defined where you want it, you have to either add
the hook yourself, or instruct the user of your extension to modify
their code and call your extension directly.
Both seem sort of messy. Are there any plans to broaden the range of
hooks other than by just adding more instances of hooks? What about
doing something like tying in hooks to wfProfileIn and wfProfileOut,
so hooks could be called before / after all functions are executed? A
more involved change would be also to pass the $this and the return
value into the hook when calling wfProfileIn and wfProfileOut.
Any ideas?
Travis