Extension:Renameuser/RenameUserComplete

From MediaWiki.org
Jump to: navigation, search
RenameUserComplete
Available from version 1.11
After a sucessful user rename

Define function:
public static function onRenameUserComplete( $uid, $oldName, $newName ) { ... }

Attach hook:
$wgHooks['RenameUserComplete'][] = 'MyExtensionHooks::onRenameUserComplete';
Called from: Renameuser extension

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


[edit] Details

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

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox