I need to generate a node of a dependent content type when creating a node of the primary content type.
I have successfully created the function to be called and attached it to the form and it creates the node as desired, but since the function that generates the secondary node runs first, it cannot be populated with the node id of the primary node, nor with any other data elements from the primary node.
How do I ensure that the submit handlers are executed in the proper order?
$form['#submit'][] = 'nttac_custom_tta_submit';
$form['actions']['submit']['#submit'][] .= 'nttac_custom_tta_submit';
$form['actions']['submit']['#submit'][] = array('node_form_submit','nttac_custom_tta_submit');
None of the above methods seem to work although they do get the handlers in the proper order