From: Aaron Schulz Date: Wed, 3 Dec 2008 06:14:15 +0000 (+0000) Subject: Tweak r44049: remove 'showEditUserGroupsForm' hook altogether X-Git-Tag: 1.31.0-rc.0~44145 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=5f519113382b8695855be7e303f159a2abeb4253;p=lhc%2Fweb%2Fwiklou.git Tweak r44049: remove 'showEditUserGroupsForm' hook altogether --- diff --git a/docs/hooks.txt b/docs/hooks.txt index 7a40302e0f..00c5f5a2aa 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -1400,11 +1400,6 @@ $addergroups : Array of groups that the user is in 'add-self' => array( addablegroups to self ), 'remove-self' => array( removable groups from self ) ) - -'UserRights::showEditUserGroupsForm': called right before the form to edit group memberships at Special:UserRights is shown -&$user: User or UserRightsProxy you're editing -&$groups: Array of groups the user is in - 'UserRetrieveNewTalks': called when retrieving "You have new messages!" message(s) $user: user retrieving new talks messages $talks: array of new talks page(s) diff --git a/includes/specials/SpecialUserrights.php b/includes/specials/SpecialUserrights.php index 43ca318854..ce0097b222 100644 --- a/includes/specials/SpecialUserrights.php +++ b/includes/specials/SpecialUserrights.php @@ -349,8 +349,6 @@ class UserrightsPage extends SpecialPage { protected function showEditUserGroupsForm( $user, $groups ) { global $wgOut, $wgUser, $wgLang; - wfRunHooks( 'UserRights::showEditUserGroupsForm', array( &$user, &$groups ) ); - $list = array(); foreach( $groups as $group ) $list[] = self::buildGroupLink( $group );