Manual:Hooks/SpecialMuteSubmit

From mediawiki.org
Jump to navigation Jump to search
SpecialMuteSubmit
Available from version 1.34.0 (Gerrit change 528272)
Used only for instrumentation on SpecialMute
Define function:
public static function onSpecialMuteSubmit( $data ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"SpecialMuteSubmit": "MyExtensionHooks::onSpecialMuteSubmit"
	}
}
Called from: File(s): includes/specials/SpecialMute.php
Function(s): onSubmit
Interface: SpecialMuteSubmitHook.php

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

Details[edit]

  • $data: Array containing information about submitted options on SpecialMute form