How to add user edit form fields to profile content type form?

    You can do this in following way. You can add email and user picture field to profile edit form
    <?php
     
    if ($form_id == 'profile_node_form') {
          require_once
    drupal_get_path('module', 'user') .'/user.pages.inc';
        require_once
    drupal_get_path('module', 'node') .'/node.pages.inc';
        global
    $user;
         
    $form += array('account' => array());
         
    // Get the node form
         
    $node_form = drupal_retrieve_form('user_profile_form', $form_state, $user);
         
    drupal_prepare_form('user_profile_form', &$node_form, &$form_state);
       
    $form['picture'] = $node_form['picture'];
       
    $form['locale'] = $node_form['locale'];
         
    $form['email'] = array(
           
    '#type' => 'textfield',
           
    '#title' => t('E-mail address'),
           
    '#default_value' => $user->mail,
           
    '#required' => TRUE,
          );
       
    $form['locale']['language']['#type'] = 'select';
          if (
    $user->uid) {
           
    $form['#submit'][] = 'profile_user_submit';
           
    $form['#validate'][] = 'users_validate_picture';
         }
       
    $form['#attributes'] = array('enctype' => 'multipart/form-data');
       }
    ?>
    5
    Average: 5 (1 vote)