Manual:Hooks/ProtectionForm::buildForm

From MediaWiki.org
Jump to: navigation, search
ProtectionForm::buildForm
Available from version 1.16.0
Called after all protection type fieldsets are made in the form.

*Define function:
function fnMyHook( $article, $output ) { ... }

*Attach hook:
$wgHooks['ProtectionForm::buildForm'][] = 'MyExtensionHooks::someExample';
Called from: ProtectionForm.php

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


[edit] Details

  • $article: the title being (un)protected
  • $output: a string of the form HTML so far
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox