* Added hook SpecialListusersGetGroups which is called right before the
authorNathaniel Herman <pinky@users.mediawiki.org>
Sat, 29 Nov 2008 19:45:10 +0000 (19:45 +0000)
committerNathaniel Herman <pinky@users.mediawiki.org>
Sat, 29 Nov 2008 19:45:10 +0000 (19:45 +0000)
  end of UsersPager::getGroups() and can be used to add to the user's
  groups.

RELEASE-NOTES
docs/hooks.txt
includes/specials/SpecialListusers.php

index ace3374..f16d1d9 100644 (file)
@@ -217,6 +217,8 @@ The following extensions are migrated into MediaWiki 1.14:
 * Moved password reset form from Special:Preferences to Special:ResetPass
 * Added Special:ChangePassword as a special page alias for Special:ResetPass
 * Added complimentary function for addHandler() called removeHandler() for removing events
+* Added hook SpecialListusersGetGroups which is called right before the end of UsersPager::getGroups()
+  and can be used by extensions to add to the user's groups.
 
 === Bug fixes in 1.14 ===
 
index ac9fd42..99c4ae2 100644 (file)
@@ -1206,6 +1206,10 @@ $query: The query array to be returned
 $item: HTML to be returned. Will be wrapped in <li></li> after the hook finishes
 $row: Database row object
 
+'SpecialListusersGetGroups': called right before the end of UsersPager::getGroups()
+&$groups: array of groups the user is in
+$uid: User identifier
+
 'SpecialListusersHeader': called before closing the <fieldset> in UsersPager::getPageHeader()
 $pager: The UsersPager instance
 $out: The header HTML
index 77c9ca1..4328d55 100644 (file)
@@ -223,6 +223,7 @@ class UsersPager extends AlphabeticPager {
                                $groups[] = $row->ug_group;
                        $dbr->freeResult( $res );
                }
+               wfRunHooks( 'SpecialListusersGetGroups', array( &$groups, $uid ) );
                return $groups;
        }