User Reference field with full list of users, but with current user as default selected value Whether I'm using User Reference module or Entity Reference module, I can't seem to create a drop-down list of all users, where the current user is selected by default.

So all users will be in the list, but I just want to the default selection to be the current user.  How can I do this?
Using hook_form_alter():

function example_form_alter(&amp;$form, &amp;$form_state, $form_id) {
    global $user;
    if ($form_id === 'my_form') {
        $form['field_user']['#default_value'] = array($user-&gt;uid =&gt; $user-&gt;name);
    }
}


Not tested, but it's the idea.