Manual:Hooks/SpecialMuteModifyFormFields
From Linux Web Expert
SpecialMuteModifyFormFields | |
---|---|
<translate> Available from <tvar name=1><translate> version <tvar (Gerrit change 520050)</tvar></translate> Allows modifying HTMLForm fields for Special:Mute | |
<translate> Define function:</translate> | public static function onSpecialMuteModifyFormFields( SpecialPage $specialPage, array &$fields ) { ... }
|
<translate> Attach hook:</translate> | <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
"Hooks": {
"SpecialMuteModifyFormFields": "MediaWiki\\Extension\\MyExtension\\Hooks::onSpecialMuteModifyFormFields"
}
}
|
<translate> Called from:</translate> | <translate> File(s):</translate> includes/specials/SpecialMute.php <translate> Function(s):</translate> getFormFields |
<translate> Interface:</translate> | SpecialMuteModifyFormFieldsHook.php |
<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:SpecialMuteModifyFormFields extensions</tvar>.</translate>
Details
$specialPage
: SpecialPage instance$fields
: Array of HTMLForm fields