Jump to content
MediaWiki

Manual:Hooks/ProtectionForm::buildForm

From mediawiki.org
Deprecated: This feature is deprecated and should no longer be used, however it is possibly still available for reasons of backwards compatibility . This feature was deprecated in version 1.36.0. See ProtectionFormAddFormFields for an alternative way to use this feature.
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":"MediaWiki\\Extension\\MyExtension\\Hooks::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

[edit ]
  • $article: the title being (un)protected
  • $output: a string of the form HTML so far

AltStyle によって変換されたページ (->オリジナル) /