Extension:Renameuser/Hooks/RenameUserAbort

From MediaWiki.org
Jump to navigation Jump to search
RenameUserAbort
Available from version ???
Allows the renaming to be aborted
Define function:
public static function onRenameUserAbort( $uid, $oldusername, $newusername ) { ... }
Attach hook:
$wgHooks['RenameUserAbort'][] = 'MyExtensionHooks::onRenameUserAbort';
Called from:File(s): Renameuser / includes/SpecialRenameuser.php
Function(s): execute

For more information about attaching hooks, see Manual:Hooks.
For examples of other extensions using this hook, see Category:RenameUserAbort extensions.

Details[edit]

  • $uid: The user ID
  • $oldusername: The old username
  • $newusername: The new username