When I create a node I want it to programmatically create some nodes that reference the node just created.
I though I would just need to change form_alter submit function for my form to call a custom function to create the nodes.
Examining the output $form_state I can see that the NID is Null. This would mean to me that my node is created after the submit has been fired. It makes sense. How can I call code to run after the node has been created so that I can automatically create some nodes that reference?