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:
function fnMyHook( &$article, &$editInfo, $changed ) { ... }

*Attach hook:
$wgHooks['ArticleEditUpdates'][] = 'fnMyHook';
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)