Manual:Hooks/EditPageGetDiffText

From MediaWiki.org
Jump to: navigation, search
EditPageGetDiffText
Available from version 1.16.0
Allow modifying the wikitext that will be used in "Show changes"

Define function:
public static function onEditPageGetDiffText( $editPage, &$newtext ) { ... }

Attach hook:
$wgHooks['EditPageGetDiffText'][] = 'MyExtensionHooks::onEditPageGetDiffText';
Called from: EditPage.php

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


[edit] Details

  • $editPage: The EditPage object
  • &$newtext: wikitext that will be used as "your version"
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox