Manual:Hooks/UnwatchArticleComplete

From MediaWiki.org

Jump to: navigation, search
UnwatchArticleComplete
Available from version 1.4.0
Occurs after the unwatch article request has been processed

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

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

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


[edit] Details

  • $user: user that was watching
  • $article: article object removed

[edit] See also