DanTMan wrote:
^_^ Can we get one for ParserFunctions and ParserTags then? If LanguageGetMagic loads on every load, then there might be reason to do the same.
We still have to load all the parserfunctions and tags ourself. And even worse we have to do it by calling on the parser and unstubbing it during load instead of letting it wait till it's actually unstubbed.
Actually... What I'm thinking is something like LanguageGetMagic. A hook, something like ParserGetHooks or whatever which passes the parser object into the function, and is used to add in all the hooks and tags to it.
It's called 'ParserFirstCallInit', and seems to be widely used by existing parser hook extensions.
-- brion vibber (brion @ wikimedia.org)