Last modified: 2008-09-07 19:05:16 UTC
...so extensions can add parameters cleanly. One generic hook that passes a reference to the module is probably best.
Created attachment 5225 [details] Implement ApiParams Hook Basic implementation of an ApiParams hook. All uses calling getAllowedParams() have been updated to calling getFinalParams instead, which gives the hook a chance to play with the paramters (add/remove) as needed.
(In reply to comment #1) > Created an attachment (id=5225) [details] > Implement ApiParams Hook > > Basic implementation of an ApiParams hook. All uses calling getAllowedParams() > have been updated to calling getFinalParams instead, which gives the hook a > chance to play with the paramters (add/remove) as needed. > Stuff that's wrong with the patch: * wfRunHooks() expects an array as its second argument * $params should be passed as a reference * hooks.txt needs to be updated * You probably want other hooks in functions like getParamDescriptions() too (that's what I meant by "and friends")
Created attachment 5297 [details] Improved patch Improved stuff here and there and added a hook for getParamDescription() too
Patch applied in r40594.