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(&$form, &$form_state, $form_id) {
switch ($form_id) {
case 'product_node_form':
global $user;
$uid = $user->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;
}
}