Jump to content

Manual:Hooks/SpecialMuteModifyFormFields

From mediawiki.org
SpecialMuteModifyFormFields
Available from version 1.34.0 (Gerrit change 520050)
Allows modifying HTMLForm fields for Special:Mute
Define function:
public static function onSpecialMuteModifyFormFields( SpecialPage $specialPage, array &$fields ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"SpecialMuteModifyFormFields": "MediaWiki\\Extension\\MyExtension\\Hooks::onSpecialMuteModifyFormFields"
	}
}
Called from: File(s): includes/specials/SpecialMute.php
Function(s): getFormFields
Interface: SpecialMuteModifyFormFieldsHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:SpecialMuteModifyFormFields extensions.


Details

[edit]
  • $specialPage: SpecialPage instance
  • $fields: Array of HTMLForm fields