r99300 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r99299‎ | r99300 | r99301 >
Date:09:07, 8 October 2011
Author:ialex
Status:ok
Tags:
Comment:
Reorder ResourceLoader hooks alphabetically
Modified paths:
  • /trunk/phase3/docs/hooks.txt (modified) (history)

Diff [purge]

Index: trunk/phase3/docs/hooks.txt
@@ -1465,7 +1465,6 @@
14661466
14671467 'PersonalUrls': Alter the user-specific navigation links (e.g. "my page,
14681468 my talk page, my contributions" etc).
1469 -
14701469 &$personal_urls: Array of link specifiers (see SkinTemplate.php)
14711470 &$title: Title object representing the current page
14721471
@@ -1505,15 +1504,6 @@
15061505 $article: the page the form is shown for
15071506 $out: OutputPage object
15081507
1509 -'ResourceLoaderRegisterModules': Right before modules information is required, such as when responding to a resource
1510 -loader request or generating HTML output.
1511 -&$resourceLoader: ResourceLoader object
1512 -
1513 -'ResourceLoaderGetStartupModules': Run once the startup module is being generated. This allows you
1514 -to add modules to the startup module. This hook should be used sparingly since any module added here
1515 -will be loaded on all pages. This hook is useful if you want to make code available to module loader
1516 -scripts.
1517 -
15181508 'RawPageViewBeforeOutput': Right before the text is blown out in action=raw
15191509 &$obj: RawPage object
15201510 &$text: The text that's going to be the output
@@ -1527,6 +1517,15 @@
15281518 page/request state must be added through MakeGlobalVariablesScript instead.
15291519 &$vars: array( variable name => value )
15301520
 1521+'ResourceLoaderGetStartupModules': Run once the startup module is being generated. This allows you
 1522+to add modules to the startup module. This hook should be used sparingly since any module added here
 1523+will be loaded on all pages. This hook is useful if you want to make code available to module loader
 1524+scripts.
 1525+
 1526+'ResourceLoaderRegisterModules': Right before modules information is required, such as when responding to a resource
 1527+loader request or generating HTML output.
 1528+&$resourceLoader: ResourceLoader object
 1529+
15311530 'RevisionInsertComplete': called after a revision is inserted into the DB
15321531 &$revision: the Revision
15331532 $data: the data stored in old_text. The meaning depends on $flags: if external

Status & tagging log