How to limit one role per user? How do I limit one role per user?

I want to see a select form field, instead of checkboxes for roles when I go to /user/#/edit.
So far I tried overwriting the $form['account']['roles'] in template.php, replace the checkboxes with a select dropdown, but failed.
You will be best using hook_form_alter().

You can edit the registration form &amp; user edit form and change the type in a custom module. 

function register_form_alter(&amp;$form, &amp;$form_state, $form_id) {
  if ( $form_id= 'user_register_form') {
    $form['user-register-form']['roles'] = array(
      '#type' =&gt; 'radios'
      // …
    );
  }
}