Manual:Hooks/ArticlePurge
From MediaWiki.org
| ArticlePurge | |
|---|---|
| Available from version 1.6.0 Executes before running "&action=purge" |
|
*Define function: |
function fnMyHook( &$article ) { ... }
|
*Attach hook: |
$wgHooks['ArticlePurge'][] = 'fnMyHook'; |
| Called from: | Article.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:ArticlePurge extensions.
[edit] Details
- $article: the article object that is being purged
[edit] Notes
Can be used to cancel an article purge