I'm creating a node module, and I want to theme the node form from this module, but I don't know how to, can anyone tell me how to?

Comments

dnewkerk’s picture

My article on theming CCK forms may help you: http://www.davidnewkerk.com/book/124

SamTN’s picture

Just use $form["#theme"] as normal. I made a big mistake, so that I created a node form by using mymodule_form, not mymodule_node_form, so that $form["#theme"] did not work.

jaypan’s picture

#theme works regardless of whether its a node form or a regular form.

Contact me to contract me for D7 -> D10/11 migrations.

SamTN’s picture

But I don't know why the #theme function does not work when I use _form instead of _node_form for my node form.