I have developed a module with a custom content type and with the use of a custom form, I'm grabbing the required details form the user. When the form gets submitted, I'm creating a new node of my content type programmatically.
The problem I am facing is the Edit process, how can I populate my form with the details of a specific node? what is the best approach to get this done.
Also, what is the best approach to create a form for a Custom Content Type? I have defined each and every element in my form separately and I'm wondering if there is a way to generate the form automatically with required HTML based on the node type.