Jump to content

Extension:CentralAuth/Hooks/CentralAuthGlobalUserMerged

From mediawiki.org
CentralAuthGlobalUserMerged
Available from version ??? (Gerrit change 167633)
Removed in version 1.38
Called after a successful user merge.
Define function:
public static function onCentralAuthGlobalUserMerged( string $oldName, string $newName, int $oldId, int $newId ) { ... }
Attach hook:
$wgHooks['CentralAuthGlobalUserMerged'][] = 'MyExtensionHooks::onCentralAuthGlobalUserMerged';
Called from:File(s): CentralAuth / includes/GlobalRename/GlobalUserMerge.php
Function(s): merge

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

Parameters

[edit]
  • $oldName: A string, representing the old username of the central user (as provided by CentralAuthUser::getName())
  • $newName: A string, representing the new username of the central user (as provided by CentralAuthUser::getName())
  • $oldId: An int, representing the old ID of the central user (as provided by CentralAuthUser::getId())
  • $newId: An int, representing the new ID of the central user (as provided by CentralAuthUser::getId())