Manual:Hooks/ProtectionForm::save
From MediaWiki.org
ProtectionForm::save | |
---|---|
Available from version 1.16.0 Called when a protection form is submitted. |
|
Define function: |
public static function onProtectionForm::save( $article, $errorMsg ) { ... } |
Attach hook: |
$wgHooks['ProtectionForm::save'][] = 'MyExtensionHooks::onProtectionForm::save'; |
Called from: | File(s): ProtectionForm.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:ProtectionForm::save extensions.
Details[edit | edit source]
- $article: the title being (un)protected
- $errorMsg: an html message string of an error