Manual:Hooks/ArticleProtectComplete
From MediaWiki.org
| ArticleProtectComplete | |
|---|---|
| Available from version 1.4.0 Occurs after the protect article request has been processed |
|
Define function: |
public static function onArticleProtectComplete( &$article, &$user, $protect, $reason, $moveonly ) { ... }
|
Attach hook: |
$wgHooks['ArticleProtectComplete'][] = 'MyExtensionHooks::onArticleProtectComplete'; |
| Called from: | Article.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:ArticleProtectComplete extensions.
Details [edit]
- $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.
