function hook_usermerge_account_properties_alter in User Merge 7.2
Perform alterations to the list of properties before it's displayed.
Parameters
$properties: The full properties array.
$user_to_delete: The full object of the user to be deleted.
$user_to_keep: The full object of the user to be kept.
$action: 'delete' or 'block'. Usually does not affect the properties.
See also
hook_usermerge_account_properties()
2 functions implement hook_usermerge_account_properties_alter()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- rdf_usermerge_account_properties_alter in includes/
rdf.usermerge.inc - Implements hook_usermerge_account_properties_alter() on behalf of rdf.
- realname_usermerge_account_properties_alter in includes/
realname.usermerge.inc - Implements hook_usermerge_account_properties_alter() on behalf of realname. Disables actions on the realname property.
1 invocation of hook_usermerge_account_properties_alter()
- usermerge_data_review_form in ./
usermerge.module - Form that allows the selection of data to be merged.
File
- ./
usermerge.api.php, line 167 - Hooks provided by the User Merge module.
Code
function hook_usermerge_account_properties_alter(&$properties, $user_to_delete, $user_to_keep, $action) {
// Example taken from rdf_usermerge_account_properties_alter()
// Sets the default to the value of $user_to_keep
$properties['other']['items']['rdf_mapping']['default'] = $user_to_keep->rdf_mapping;
}