Manual:Hooks/ArticleContentOnDiff

From MediaWiki.org
Jump to: navigation, search
ArticleContentOnDiff
Available from version 1.17.0
Before showing the article content below a diff.

Define function:
public static function onArticleContentOnDiff( $diffEngine, $output ) { ... }

Attach hook:
$wgHooks['ArticleContentOnDiff'][] = 'MyExtensionHooks::onArticleContentOnDiff';
Called from: DifferenceEngine.php

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


[edit] Details

Use this to change the content in this area or how it is loaded.

  • $diffEngine: the DifferenceEngine
  • $output: the OutputPage object ($wgOut)
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox