Create a custom form from Custom Content Type & Save it I've created a custom content-type using GUI interface.

I need to customize the form which takes input while creating a content of the content-type. I can do this by hook_theme implementation but I'm trying to create a brand new form, and save the content's fields in database, so that it appears as a full-functional content of my content-type.


How do I create a form (I know how to create forms in my custom module) that contains the fields (all, or selectively some) of my custom content-type?
Most Importantly, when the form is submitted, how do I save the fields so that it appears as a brand new content-type?


I think I've made it clear, please answer, or ask me to clarify the question more if necessary...
node_form will give you a form for your content-type, just pass a node.object having your content-type ($node->type) and maybe something more .., plus the content-type needs to be registred already i guess

saving is handled automagically ...