Manual:Hooks/SpecialBlockModifyFormFields

SpecialBlockModifyFormFields
Available from version 1.24.0
Add or modify block fields of Special:Block
Define function:
public static function onSpecialBlockModifyFormFields( $sp, &$fields ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"SpecialBlockModifyFormFields": "MyExtensionHooks::onSpecialBlockModifyFormFields"
	}
}
Called from:File(s): specials/Hook/SpecialBlockModifyFormFieldsHook.php
Interface:SpecialBlockModifyFormFieldsHook.php

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

DetailsEdit

  • $sp: SpecialPage object, for context0
  • &$fields: Current HTMLForm fields

NotesEdit

Added in MediaWiki 1.24 .