function role_delegation_form_user_register_alter in Role Delegation 6
Implementation of hook_form_FORM_ID_alter() for user_register().
File
- ./
role_delegation.module, line 277 - This module allows site administrators to grant some roles the authority to assign selected roles to users, without them needing the 'administer access control' permission.
Code
function role_delegation_form_user_register_alter(&$form, $form_state) {
// Move our field where it belongs
if (isset($form['roles_assign'])) {
$form['account']['roles_assign'] = $form['roles_assign'];
unset($form['roles_assign']);
$form['account']['notify']['#weight'] = 11;
}
}