File: hooks.txt

package info (click to toggle)
mediawiki 1%3A1.31.16-1%2Bdeb10u2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 174,400 kB
  • sloc: php: 475,610; javascript: 366,085; sql: 14,033; python: 4,042; xml: 1,953; ruby: 1,076; pascal: 925; perl: 789; sh: 529; makefile: 162
file content (34 lines) | stat: -rw-r--r-- 1,134 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
This document describes how event hooks work in the Renameuser extension.

For a more comprehensive guide to hooks, navigate to your root MediaWiki
directory and read docs/hooks.txt.

== Events and parameters ==
This is a list of known events and parameters; please add to it if you're going
to add events to the Renameuser extension.

'RenameUserAbort': Allows the renaming to be aborted
$uid: The user ID
$oldusername: The old username
$newusername: The new username

'RenameUserComplete': Called after a user was renamed
$uid: The user ID
$old: The new username
$new: The old username

'RenameUserPreRename': Called before a user is renamed
$uid: The user ID
$old: The new username
$new: The old username

'RenameUserSQL': Called in the constructer of RenameuserSQL (which performs
	the actual renaming of users)
&$this: RenameuserSQL

'RenameUserWarning': Called on Special:Renameuser before a user is renamed.
	Will show the given warnings to the user and ask for a confirmation.
$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