Manual:Hooks/WatchArticle
From MediaWiki.org
| WatchArticle | |
|---|---|
| Available from version 1.4.0 Occurs whenever the software receives a request to watch an article |
|
*Define function: |
function fnMyHook( &$user, &$article ) { ... }
|
*Attach hook: |
$wgHooks['WatchArticle'][] = 'fnMyHook'; |
| Called from: | Article.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:WatchArticle extensions.
[edit] Details
- $user: user that will watch
- $article: article object to be watched