Extension:CentralAuth/Hooks/CentralAuthGlobalUserMerged
Appearance
This feature was removed completely in version 1.38. (gerrit 745978) |
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
: Astring
, representing the old username of the central user (as provided byCentralAuthUser::getName()
)$newName
: Astring
, representing the new username of the central user (as provided byCentralAuthUser::getName()
)$oldId
: Anint
, representing the old ID of the central user (as provided byCentralAuthUser::getId()
)$newId
: Anint
, representing the new ID of the central user (as provided byCentralAuthUser::getId()
)