Manual:Hooks/ArticleViewHeader

From MediaWiki.org

Jump to: navigation, search
ArticleViewHeader
Available from version 1.6.0
Occurs when an articleheader is shown

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

*Attach hook:
$wgHooks['ArticleViewHeader'][] = 'fnMyHook';
Called from: 1.6+ - Article.php: Article::view()

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


[edit] Details

  • $article: the article (object)

[edit] See also

Personal tools