Extension:Renameuser/Hooks/RenameUserWarning

From MediaWiki.org
Jump to navigation Jump to search
RenameUserWarning
Available from version ???
Called on Special:Renameuser before a user is renamed. Will show the given warnings to the user and ask for a confirmation.
Define function:
public static function onRenameUserWarning( $oun, $nun, &$warnings ) { ... }
Attach hook:
$wgHooks['RenameUserWarning'][] = 'MyExtensionHooks::onRenameUserWarning';
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:RenameUserWarning extensions.

Details[edit]

  • $oun: The old username
  • $nun: The new username
  • &$warnings: Array with message key(s) or message key(s) and parameter(s) for the warnings to be shown