Manual:Hooks/ProtectionForm::save

From MediaWiki.org
Jump to: navigation, search
ProtectionForm::save
Available from version 1.16.0
Called when a protection form is submitted.

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

*Attach hook:
$wgHooks['ProtectionForm::save'][] = '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::save extensions.


[edit] Details

  • $article: the title being (un)protected
  • $errorMsg: an html message string of an error
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox