By paul_nl on
Hi,
Does anybody know what is the best method (if there is a method) to add a custom form that can be submitted, on a node edit page? My guess is using form_alter(), but I don't know if this is gonna work and is the best way to do that.
Thanks!
Comments
Use hook_form_alter
I dont know when you want to add the custom form there are two scenarios
1. When user viewing the node ,url eg is : www.xyz.com/node/{nid}
2. When node owner of the node is editing the node, url eg is : www.xyz.com/node/{nid}/edit
In first case you need to use
In second case Use hook_form_alter and switch to your content type node form case
Hope this works ,Try out