Manual:Hooks/ArticleEditUpdates

From MediaWiki.org
Jump to: navigation, search
ArticleEditUpdates
Available from version 1.14.0
Executes when edit updates (mainly link tracking) are made after an article has been changed

Define function:
public static function onArticleEditUpdates( &$article, &$editInfo, $changed ) { ... }

Attach hook:
$wgHooks['ArticleEditUpdates'][] = 'MyExtensionHooks::onArticleEditUpdates';
Called from: Article.php

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


[edit] Details

  • &$article: article object
  • &$editInfo: data holder that includes the parser output for the page being changed
  • $changed: flag indicating that page was changed (boolean)
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox