Extension:Renameuser/RenameUserPreRename

From MediaWiki.org
Jump to: navigation, search
RenameUserPreRename
Available from version 1.13
Before renaming an user

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

*Attach hook:
$wgHooks['RenameUserPreRename'][] = 'MyExtensionHooks::someExample';
Called from: Renameuser extension

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


[edit] Details

  • $uid: id of the user being renamed
  • $oldName: old name
  • $newName: new name
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox