Extension:Renameuser/RenameUserAbort

From MediaWiki.org

Jump to: navigation, search
RenameUserAbort
Available from version 1.11
Allow other extensions to abort a user rename

*Define function:
function fnMyHook( $uid, $oldName, $newName ) { ... }

*Attach hook:
$wgHooks['RenameUserAbort'][] = 'fnMyHook';
Called from: Renameuser extension

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


[edit] Details

  • $uid: id of the user being renamed
  • $oldName: old name
  • $newName: new name