Manual:Hooks/SpecialResetTokensTokens
SpecialResetTokensTokens | |
---|---|
Available from version 1.22.0 (Gerrit change 64565) Called when building token list for SpecialResetTokens. | |
Define function: | public static function onSpecialResetTokensTokens( array &$tokens ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"SpecialResetTokensTokens": "MediaWiki\\Extension\\MyExtension\\Hooks::onSpecialResetTokensTokens"
}
}
|
Called from: | File(s): specials/SpecialResetTokens.php Function(s): getTokensList |
Interface: | SpecialResetTokensTokensHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:SpecialResetTokensTokens extensions.
Details
edit&$tokens: array of token information arrays in the format of
[
'preference' => '<preference-name>',
'label-message' => '<message-key>',
];