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, &$outputDone, &$pcache) { ... }

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

*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)
  • $outputDone: If there is no more output to output, set $outputDone to true.
  • $pcache: If you want the parser cache to try retrieving cached results, set $pcache to done.

[edit] See also

Personal tools