< Manual:Hooks
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": "MyExtensionHooks::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

&$tokens: array of token information arrays in the format of

[
	'preference' => '<preference-name>',
	'label-message' => '<message-key>',
];
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.