Extension:UserMerge/Hooks/UserMergeAccountFields
Appearance
(Redirected from Manual:Hooks/UserMergeAccountFields)
For more information about attaching hooks, see Manual:Hooks.
For examples of other extensions using this hook, see Category:UserMergeAccountFields extensions.
Details
[edit]- &$updateFields: an array containing a list of field configurations. Each configuration is in the form
array( $tableName, $idField, $textField, 'batchKey' => $batchKey, 'options' => $options, 'db' => $db ). Everything except$tableNameand$idFieldis optional.- $tableName: name of the table containing the field(s) to update
- $idField: field containing the user ID
- $textField: field containing the username
- $batchKey: primary key of the table. If present, update will be done in batches.
- $options: options array for Database::update(). Typically used to ignore duplicate keys.
- $db: DB connection to use
If the update operation is too complex to be handled this way, MergeAccountFromTo can be used instead.