[development] Get the form for a node

Fernando Conceição fernando at jaguaribe.net
Mon Jun 13 00:59:40 UTC 2011


Em 12-06-2011 21:33, Jamie Holly escreveu:
> Actually it's:
>
> module_load_include('inc', 'node', 'node.pages');
> $form = drupal_get_form($node->type .'_node_form', $node);
>
> [OR]
>
> $form = node_page_edit($node); // This will also set the page title 
> with the node title
>
> Make sure to load the node.pages.inc file so that everything
>
The line:
module_load_include('inc', 'node', 'node.pages');

Make all the diference and now works as i want, thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20110612/77b720c0/attachment-0001.html 


More information about the development mailing list