* @param string $username Name of the user.
*/
function editUserGroupsForm($username) {
- global $wgOut, $wgUser;
+ global $wgOut;
$user = User::newFromName($username);
if( is_null( $user ) ) {
}
$groups = $user->getGroups();
-
+ $this->showEditUserGroupsForm( $username, $groups );
+ }
+
+ function showEditUserGroupsForm( $username, $groups ) {
+ global $wgOut, $wgUser;
$wgOut->addHTML(
Xml::openElement( 'form', array( 'method' => 'post', 'action' => $this->action, 'name' => 'editGroup' ) ) .
Xml::hidden( 'user-editname', $username ) .