X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=docs%2Fhooks.txt;h=b38bd666e4d20d70d42f35c58a779b60c9ac853f;hb=c8f77e97faaecfb656042554fdc4d60d32ad39e8;hp=f35d61039504d83addb800131115c07145f01dcd;hpb=6c9a0a2a68561500f96ecdc5862ecb386d67a849;p=lhc%2Fweb%2Fwiklou.git diff --git a/docs/hooks.txt b/docs/hooks.txt index f35d610395..b38bd666e4 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -467,6 +467,12 @@ can alter or append to the array. (url), 'width', 'height', 'alt', 'align'. - url: Url for the given title. +'ApiParseMakeOutputPage': Called when preparing the OutputPage object for +ApiParse. This is mainly intended for calling OutputPage::addContentOverride() +or OutputPage::addContentOverrideCallback(). +$module: ApiBase (which is also a ContextSource) +$output: OutputPage + 'ApiQuery::moduleManager': Called when ApiQuery has finished initializing its module manager. Can be used to conditionally register API query modules. $moduleManager: ApiModuleManager Module manager instance @@ -2795,12 +2801,6 @@ configuration variables to JavaScript. Things that depend on the current page or request state must be added through MakeGlobalVariablesScript instead. &$vars: array( variable name => value ) -'ResourceLoaderGetLessVars': DEPRECATED! Called in ResourceLoader::getLessVars -to add global LESS variables. Loaded after $wgResourceLoaderLESSVars is added. -Global LESS variables are deprecated. Use ResourceLoaderModule::getLessVars() -instead to expose variables only in modules that need them. -&$lessVars: array of variables already added - 'ResourceLoaderJqueryMsgModuleMagicWords': Called in ResourceLoaderJqueryMsgModule to allow adding magic words for jQueryMsg. The value should be a string, and they can depend only on the