I have a situation where I need to redirect the user to a specific URL after a node is added or updated.
I have found several posts which show the hook_form_alter examples, but I cannot see how I can access the relevant node data to structure my URL for the redirect.
My redirect url uses
node->nid and a custom field
node->field_relatedproject in order to redirect to the URL that I need.
Is there a way to access the content of these fields in the hook_form_alter or hook_form_submit process?