1 This document describes how event hooks work in the Renameuser extension.
3 For a more comprehensive guide to hooks, navigate to your root MediaWiki
4 directory and read docs/hooks.txt.
6 == Events and parameters ==
7 This is a list of known events and parameters; please add to it if you're going
8 to add events to the Renameuser extension.
10 'RenameUserAbort': Allows the renaming to be aborted
12 $oldusername: The old username
13 $newusername: The new username
15 'RenameUserComplete': Called after a user was renamed
17 $old: The new username
18 $new: The old username
20 'RenameUserPreRename': Called before a user is renamed
22 $old: The new username
23 $new: The old username
25 'RenameUserSQL': Called in the constructer of RenameuserSQL (which performs
26 the actual renaming of users)
29 'RenameUserWarning': Called on Special:Renameuser before a user is renamed.
30 Will show the given warnings to the user and ask for a confirmation.
31 $oun: The old username
32 $nun: The new username
33 &$warnings: Array with message key(s) or message key(s) and parameter(s) for
34 the warnings to be shown