Manual:Hooks/SpecialMuteSubmit

From Linux Web Expert

Revision as of 16:00, 17 November 2023 by imported>SamanthaNguyen (mark as removed in 1.40)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

SpecialMuteSubmit
<translate> Available from <tvar name=1><translate> version <tvar (Gerrit change 528272)</tvar></translate>
<translate> Removed in <tvar name=1><translate> version <tvar (Gerrit change 893996)</tvar></translate>
Used only for instrumentation on SpecialMute
<translate> Define function:</translate>
public static function onSpecialMuteSubmit( $data ) { ... }
<translate> Attach hook:</translate> <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
	"Hooks": {
		"SpecialMuteSubmit": "MediaWiki\\Extension\\MyExtension\\Hooks::onSpecialMuteSubmit"
	}
}
<translate> Called from:</translate> <translate> File(s):</translate> includes/specials/SpecialMute.php
<translate> Function(s):</translate> onSubmit
<translate> Interface:</translate> SpecialMuteSubmitHook.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:SpecialMuteSubmit extensions</tvar>.</translate>

Details

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