Manual:Hooks/WatchArticleComplete

From MediaWiki.org
Jump to: navigation, search
WatchArticleComplete
Available from version 1.4.0
Occurs after the watch article request has been processed

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

*Attach hook:
$wgHooks['WatchArticleComplete'][] = 'MyExtensionHooks::someExample';
Called from: Article.php

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


[edit] Details

  • $user: user that watched
  • $article: article object watched

[edit] See also

Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox