joining 2 form, but submit handler can not work I joined this 2 form and the current submit only works for the 2nd form... also it is showing an extra save button :( can anyone help me how to join the submit,preview and delete button?

here is my code :

function productform_form_alter(&amp;$form, &amp;$form_state, $form_id) {

switch ($form_id)  {
  case 'product_node_form':

    global $user;
    $uid = $user-&gt;uid;

    module_load_include('inc', 'profile2_page', 'profile2_page');
    $profile2 = profile2_by_uid_load($uid, 'main');
    $entity_form = entity_ui_get_form('profile2', $profile2, 'edit');

    $form[] = $entity_form;

    dsm($form);

    return $form;
  break;
}   


}
I'd sugest to build your own form using FAPI and create the nodes programmatically in the submitthandler.

Looking at what you get in hook_form_alter has of course a good learning effect.