Manual:Hooks/ProtectionForm::save
From MediaWiki.org
Warning - v1.16.0 has not been released yet. This feature may be modified or removed before final release.
| 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'][] = 'fnMyHook'; |
| 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