...so extensions can add parameters cleanly. One generic hook that passes a reference to the module is probably best.
Version: 1.14.x
Severity: enhancement
...so extensions can add parameters cleanly. One generic hook that passes a reference to the module is probably best.
Version: 1.14.x
Severity: enhancement
Created attachment 5225
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.
attachment diff.patch ignored as obsolete
(In reply to comment #1)
Created an attachment (id=5225) [details]
Implement ApiParams HookBasic 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:
Created attachment 5297
Improved patch
Improved stuff here and there and added a hook for getParamDescription() too
Attached: