Merge "Special:ListUsers: Use HTMLForm and OOUI"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 13 Jul 2017 18:25:32 +0000 (18:25 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 13 Jul 2017 18:25:32 +0000 (18:25 +0000)
1  2 
docs/hooks.txt

diff --combined docs/hooks.txt
@@@ -74,7 -74,9 +74,7 @@@ Using a hook-running strategy, we can a
  stuff in our mainline code. Using hooks, the function becomes:
  
        function showAnArticle( $article ) {
 -
                if ( Hooks::run( 'ArticleShow', array( &$article ) ) ) {
 -
                        # code to actually show the article goes here
  
                        Hooks::run( 'ArticleShowComplete', array( &$article ) );
@@@ -2657,7 -2659,6 +2657,7 @@@ $formData: array of user submitted dat
  $form: PreferencesForm object, also a ContextSource
  $user: User object with preferences to be saved set
  &$result: boolean indicating success
 +$oldUserOptions: array with user old options (before save)
  
  'PreferencesGetLegend': Override the text used for the <legend> of a
  preferences section.
@@@ -2716,11 -2717,6 +2716,11 @@@ random pages
  'RecentChange_save': Called at the end of RecentChange::save().
  &$recentChange: RecentChange object
  
 +'RecentChangesPurgeRows': Called when old recentchanges rows are purged, after
 +deleting those rows but within the same transaction.
 +$rows: The deleted rows as an array of recentchanges row objects (with up to
 +  $wgUpdateRowsPerQuery items).
 +
  'RedirectSpecialArticleRedirectParams': Lets you alter the set of parameter
  names such as "oldid" that are preserved when using redirecting special pages
  such as Special:MyPage and Special:MyTalk.
@@@ -3116,7 -3112,7 +3116,7 @@@ UsersPager::formatRow()
  &$item: HTML to be returned. Will be wrapped in <li></li> after the hook finishes
  $row: Database row object
  
- 'SpecialListusersHeader': Called before closing the <fieldset> in
+ 'SpecialListusersHeader': Called after adding the submit button in
  UsersPager::getPageHeader().
  $pager: The UsersPager instance
  &$out: The header HTML
@@@ -3458,14 -3454,6 +3458,14 @@@ $title: Title object of the page that w
  $title: title object related to the revision
  $rev: revision (object) that will be viewed
  
 +'UnitTestsAfterDatabaseSetup': Called right after MediaWiki's test infrastructure
 +has finished creating/duplicating core tables for unit tests.
 +$database: Database in question
 +$prefix: Table prefix to be used in unit tests
 +
 +'UnitTestsBeforeDatabaseTeardown': Called right before MediaWiki tears down its
 +database infrastructure used for unit tests.
 +
  'UnitTestsList': Called when building a list of paths containing PHPUnit tests.
  Since 1.24: Paths pointing to a directory will be recursively scanned for
  test case files matching the suffix "Test.php".