You are here

function hook_usermerge_merge_accounts_alter in User Merge 7.2

Alter merged data before saving account.

Parameters

$merged_account: The full object of the merged account.

$user_to_delete: The full object of the user to be deleted.

$user_to_keep: The full object of the user to be kept.

See also

hook_usermerge_merge_accounts()

1 function implements hook_usermerge_merge_accounts_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

realname_usermerge_merge_accounts_alter in includes/realname.usermerge.inc
Implements hook_usermerge_merge_accounts_alter() on behalf of realname. Removes the Real Name, which will be recreated automatically.
1 invocation of hook_usermerge_merge_accounts_alter()
usermerge_merge_accounts in ./usermerge.module
Merges the selected accounts.

File

./usermerge.api.php, line 282
Hooks provided by the User Merge module.

Code

function hook_usermerge_merge_accounts_alter($merged_account, $user_to_delete, $user_to_keep) {

  // Example from realname_usermerge_merge_accounts_alter()
  // Removes the Real Name, which will be recreated automatically
  $merged_account['realname'] = NULL;
  return $merged_account;
}