Available from version 1.40.0 (Gerrit change 50474)
Allow modifying the SQL query for when a user is renamed
Define function:
public static function on( RenameuserSQL $renameUserSql ) { ... }
Attach hook:
$wgHooks[''][] = 'MyExtensionHooks::on';
Called from:File(s): RenameUser/RenameuserSQL.php
Function(s): __construct

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

Parameters edit

  • $renameUserSql: An instance of RenameuserSQL