By SamTN on
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?
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
Article
My article on theming CCK forms may help you: http://www.davidnewkerk.com/book/124
I'm very sorry for my stupid
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.
#theme works regardless of
#theme works regardless of whether its a node form or a regular form.
Contact me to contract me for D7 -> D10/11 migrations.
Yes, that's right
But I don't know why the #theme function does not work when I use _form instead of _node_form for my node form.