From: Nathaniel Herman Date: Sat, 29 Nov 2008 19:45:10 +0000 (+0000) Subject: * Added hook SpecialListusersGetGroups which is called right before the X-Git-Tag: 1.31.0-rc.0~44165 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=f52a47c2a16674b624f32a41e825837fb0b429a7;p=lhc%2Fweb%2Fwiklou.git * Added hook SpecialListusersGetGroups which is called right before the end of UsersPager::getGroups() and can be used to add to the user's groups. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index ace3374b78..f16d1d94b7 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 === diff --git a/docs/hooks.txt b/docs/hooks.txt index ac9fd427ea..99c4ae2600 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -1206,6 +1206,10 @@ $query: The query array to be returned $item: HTML to be returned. Will be wrapped in
  • 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
    in UsersPager::getPageHeader() $pager: The UsersPager instance $out: The header HTML diff --git a/includes/specials/SpecialListusers.php b/includes/specials/SpecialListusers.php index 77c9ca1706..4328d55091 100644 --- a/includes/specials/SpecialListusers.php +++ b/includes/specials/SpecialListusers.php @@ -223,6 +223,7 @@ class UsersPager extends AlphabeticPager { $groups[] = $row->ug_group; $dbr->freeResult( $res ); } + wfRunHooks( 'SpecialListusersGetGroups', array( &$groups, $uid ) ); return $groups; }