Manual:Hooks/SpecialBlockModifyFormFields

SpecialBlockModifyFormFields
Available from version 1.24.0
Add or modify block fields in Special:Block
Define function:
public static function onSpecialBlockModifyFormFields( SpecialBlock $specialPage, array &$fields ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"SpecialBlockModifyFormFields": "MyExtensionHooks::onSpecialBlockModifyFormFields"
	}
}
Called from: File(s): specials/SpecialBlock.php
Function(s): getFormFields
Interface: SpecialBlockModifyFormFieldsHook.php

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


DetailsEdit

  • $specialPage: An instance of SpecialBlock
  • &$fields: An array of HTMLForm fields