Available from version 1.19.0 (Gerrit change 89147)
trigger update actions somewhere else when account "fromUser" is merged into account "toUser" by the UserMerge and Delete action
Define function:
public static function onMergeAccountFromTo( &$fromUser, &$toUser ) { ... }
Attach hook:
$wgHooks['MergeAccountFromTo'][] = 'MyExtensionHooks::onMergeAccountFromTo';
Called from:File(s): UserMerge / includes/MergeUser.php
Function(s): mergeDatabaseTables

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

Details edit

  • &$fromUser: user object of the "merge from" (source) account
  • &$toUser: user object of the "merge to" (target) account

Used to update user data stored by extensions. If the only update needed is to change the user ID or name (no records need to be merged etc.), UserMergeAccountFields is a better alternative.