function hook_usermerge_query_authored_entities_alter in User Merge 7.2
Alter authored entities which are automatically merged.
Parameters
array $entities: An array of arrays of entities that will be automatically merged, indexed by entity type and then entity id.
array $entity_types: An array of entity merge specifications, indexed by entity type, which are eligible to be merged.
integer $user_id: The user id of the account to be deleted.
1 function implements hook_usermerge_query_authored_entities_alter()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
1 invocation of hook_usermerge_query_authored_entities_alter()
- usermerge_query_authored_entities in ./
usermerge.usermerge.inc - Selects entities whose uid matches the selected user.
File
- ./
usermerge.api.php, line 303 - Hooks provided by the User Merge module.
Code
function hook_usermerge_query_authored_entities_alter(&$entities, $entity_types, $user_id) {
// Prevent profile2 entities from being automatically merged as authoried entities because
// Profile2 supplies its own merging.
unset($entities['profile2']);
}