I am trying to append a variable on the URL through a custom submit function. Is that possible?
My issue is that I am coming to the node/%/delete from different pages. I want to modify the delete form if the user comes to it from the node/%/edit. How can I detect this?
As @Clive suggested I'll try to add a query param in the following structure:
actions (Array, 5 elements) #type (String, 7 characters ) actions submit (Array, 5 elements) preview (Array, 5 elements) delete (Array, 4 elements) #type (String, 6 characters ) submit #value (String, 6 characters ) Delete #weight (Integer) 15