Manual:Hooks/UnwatchArticle

From MediaWiki.org

Jump to: navigation, search
UnwatchArticle
Available from version 1.4.0
Occurs whenever the software receives a request to unwatch an article

*Define function:
function fnMyHook( &$user, &$article ) { ... }

*Attach hook:
$wgHooks['UnwatchArticle'][] = 'fnMyHook';
Called from: Article.php

*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:UnwatchArticle extensions.


[edit] Details

  • $user: user watching
  • $article: article object to be removed

[edit] See also