[development] Get the form for a node
Fernando Conceição
fernando at jaguaribe.net
Sun Jun 12 23:49:33 UTC 2011
I have searched a lot, but dont find the right way to do this.
So what i want is to load the form for a node, the same form as if i am
editing a node, something like:
$node = node_load(1);
$form = get_the_edit_form_for_this_node($node);
I try:
$node = node_load(1);
$form = drupal_get_form('article_node_form', $node);
But the resulting $form do not have the fields and the values for this node.
Thanks for any help.
More information about the development
mailing list