< Manual:Hooks
ProtectionForm::buildForm
Available from version 1.16.0
Called after all protection type fieldsets are made in the form.
Define function:
public static function onProtectionForm_buildForm( $article, $output ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"ProtectionForm::buildForm": "MyExtensionHooks::onProtectionFormbuildForm"
	}
}
Called from: File(s): ProtectionForm.php
Interface: ProtectionForm__buildFormHook.php

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

Details

  • $article: the title being (un)protected
  • $output: a string of the form HTML so far
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.