function usermerge_merge_form in User Merge 6
Same name and namespace in other branches
- 7.2 usermerge.module \usermerge_merge_form()
- 7 usermerge.module \usermerge_merge_form()
Form to collect the two uids.
1 string reference to 'usermerge_merge_form'
- usermerge_menu in ./
usermerge.module - Implementation of hook_menu().
File
- ./
usermerge.module, line 44 - Main file for the user merge module, which re-assigns data from an abandoned account to a live one.
Code
function usermerge_merge_form() {
// Find out what's supported.
$supported_actions = module_invoke_all('usermerge_actions_supported');
$form['general']['supported_actions'] = array(
'#value' => t('Supported actions:') . theme('item_list', $supported_actions),
);
$form['general']['usermerge_user_delete'] = array(
'#type' => 'textfield',
'#title' => t('The name of the account to remove'),
'#description' => t('All content associated with this user will be changed so it is associated with the other user.'),
'#autocomplete_path' => 'user/autocomplete',
'#required' => TRUE,
);
$form['general']['usermerge_user_keep'] = array(
'#type' => 'textfield',
'#title' => t('The name of the account to keep'),
'#description' => t('The account to use in the future.'),
'#autocomplete_path' => 'user/autocomplete',
'#required' => TRUE,
);
$form['general']['submit'] = array(
'#type' => 'submit',
'#value' => t('Merge accounts now!'),
);
return $form;
}