Manual:Hooks/ArticleProtectComplete
From MediaWiki.org
< Manual:Hooks(Redirected from Manual:MediaWiki hooks/ArticleProtectComplete)
| ArticleProtectComplete | |
|---|---|
| Available from version 1.4.0 Occurs after the protect article request has been processed |
|
*Define function: |
function fnMyHook( &$article, &$user, $protect, $reason, $moveonly ) { ... }
|
*Attach hook: |
$wgHooks['ArticleProtectComplete'][] = 'MyExtensionHooks::someExample'; |
| Called from: | Article.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:ArticleProtectComplete extensions.
[edit] Details
- $article: the article object that was protected
- $user: the user object who did the protection
- $protect*: boolean whether it was a protect or an unprotect
- $reason: Reason for protect
- $moveonly: boolean whether it was for move only or not
* prior to version 1.10, this variable contained an array of page restrictions that were eventually stored in the page_restrictions field of the page table.
