From: Alexandre Emsenhuber Date: Sat, 8 Oct 2011 09:07:02 +0000 (+0000) Subject: Reorder ResourceLoader hooks alphabetically X-Git-Tag: 1.31.0-rc.0~27195 X-Git-Url: http://git.cyclocoop.org/data/%24oldEdit?a=commitdiff_plain;h=c7ecb6777da5001a6336a87de445af78000cda8b;p=lhc%2Fweb%2Fwiklou.git Reorder ResourceLoader hooks alphabetically --- diff --git a/docs/hooks.txt b/docs/hooks.txt index a434eb33f7..0cc395731e 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -1465,7 +1465,6 @@ to ensure that tests continue to run properly. 'PersonalUrls': Alter the user-specific navigation links (e.g. "my page, my talk page, my contributions" etc). - &$personal_urls: Array of link specifiers (see SkinTemplate.php) &$title: Title object representing the current page @@ -1505,15 +1504,6 @@ $errorMsg: an html message string of an error $article: the page the form is shown for $out: OutputPage object -'ResourceLoaderRegisterModules': Right before modules information is required, such as when responding to a resource -loader request or generating HTML output. -&$resourceLoader: ResourceLoader object - -'ResourceLoaderGetStartupModules': Run once the startup module is being generated. This allows you -to add modules to the startup module. This hook should be used sparingly since any module added here -will be loaded on all pages. This hook is useful if you want to make code available to module loader -scripts. - 'RawPageViewBeforeOutput': Right before the text is blown out in action=raw &$obj: RawPage object &$text: The text that's going to be the output @@ -1527,6 +1517,15 @@ configuration variables to JavaScript. Things that depend on the current page/request state must be added through MakeGlobalVariablesScript instead. &$vars: array( variable name => value ) +'ResourceLoaderGetStartupModules': Run once the startup module is being generated. This allows you +to add modules to the startup module. This hook should be used sparingly since any module added here +will be loaded on all pages. This hook is useful if you want to make code available to module loader +scripts. + +'ResourceLoaderRegisterModules': Right before modules information is required, such as when responding to a resource +loader request or generating HTML output. +&$resourceLoader: ResourceLoader object + 'RevisionInsertComplete': called after a revision is inserted into the DB &$revision: the Revision $data: the data stored in old_text. The meaning depends on $flags: if external