< Extension:Renameuser < Hooks
RenameUserPreRename | |
---|---|
Available from version ??? Called before a user is renamed |
|
Define function: | public static function onRenameUserPreRename( $uid, $old, $new ) { ... }
|
Attach hook: | $wgHooks['RenameUserPreRename'][] = 'MyExtensionHooks::onRenameUserPreRename';
|
Called from: | File(s): Renameuser / includes/RenameuserSQL.php Function(s): rename |
For more information about attaching hooks, see Manual:Hooks
For examples of other extensions using this hook, see Category:RenameUserPreRename extensions.
Details
- $uid: The user ID
- $old: The new username
- $new: The old username
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.