How to render field in hook_form_alter? I am trying to show a user profile field in node form.

function mymodule_form_FORM_ID_alter(&amp;$form, &amp;$form_state, $form_id){
        $form['myfield'] = array(
            '#markup' =&gt; drupal_render(field_view_field('user', $account, 'field_myfield'));
        );
}


field_view_field() is not returning any thing.
Question is, the profile field of which user? The node author, or the current user?

In both cases you need to fetch the $account you are trying to pass to field_view_field.

For the current user:

global $user;
$account = user_load($user-&gt;uid);


For the node author:

$account = user_load($form_state['node']-&gt;uid);