Extension:UserMerge/MergeAccountFromTo

From MediaWiki.org
Jump to: navigation, search
MergeAccountFromTo
Available from [[MediaWiki 1.19|version 1.19 r89147]]
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( array( &$fromUser, &$toUser ) ) { ... }

Attach hook:
$wgHooks['MergeAccountFromTo'][] = 'MyExtensionHooks::onMergeAccountFromTo';
Called from: UserMerge extension

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


[edit] Details

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

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox