Manual:Hooks/LinksUpdate

From MediaWiki.org
Jump to: navigation, search
LinksUpdate
Available from version 1.12.0
At the beginning of LinksUpdate::doUpdate() just before the actual update

Define function:
public static function onLinksUpdate( &$linksUpdate ) { ... }

Attach hook:
$wgHooks['LinksUpdate'][] = 'MyExtensionHooks::onLinksUpdate';
Called from: LinksUpdate.php

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


Details[edit | edit source]

  • &$linksUpdate: the LinksUpdate object