Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -217,6 +217,8 @@ |
218 | 218 | * Moved password reset form from Special:Preferences to Special:ResetPass |
219 | 219 | * Added Special:ChangePassword as a special page alias for Special:ResetPass |
220 | 220 | * Added complimentary function for addHandler() called removeHandler() for removing events |
| 221 | +* Added hook SpecialListusersGetGroups which is called right before the end of UsersPager::getGroups() |
| 222 | + and can be used by extensions to add to the user's groups. |
221 | 223 | |
222 | 224 | === Bug fixes in 1.14 === |
223 | 225 | |
Index: trunk/phase3/includes/specials/SpecialListusers.php |
— | — | @@ -223,6 +223,7 @@ |
224 | 224 | $groups[] = $row->ug_group; |
225 | 225 | $dbr->freeResult( $res ); |
226 | 226 | } |
| 227 | + wfRunHooks( 'SpecialListusersGetGroups', array( &$groups, $uid ) ); |
227 | 228 | return $groups; |
228 | 229 | } |
229 | 230 | |
Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -1206,6 +1206,10 @@ |
1207 | 1207 | $item: HTML to be returned. Will be wrapped in <li></li> after the hook finishes |
1208 | 1208 | $row: Database row object |
1209 | 1209 | |
| 1210 | +'SpecialListusersGetGroups': called right before the end of UsersPager::getGroups() |
| 1211 | +&$groups: array of groups the user is in |
| 1212 | +$uid: User identifier |
| 1213 | + |
1210 | 1214 | 'SpecialListusersHeader': called before closing the <fieldset> in UsersPager::getPageHeader() |
1211 | 1215 | $pager: The UsersPager instance |
1212 | 1216 | $out: The header HTML |