<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:12pt"><div style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 12pt; "><span>Thanks, Jamie. That's why I try not to code off the top of my head, or after a very eventful day.</span></div><div style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 12pt; "> </div><div style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 12pt; "><font color="#ff007f" size="4" face="bookman old style, new york, times, serif"><i><strong>Nancy</strong></i></font></div><div><font class="Apple-style-span" color="#ff007f" face="'bookman old style', 'new york', times, serif" size="4"><b><i><br></i></b></font></div><div style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 12pt; "> </div><div style="font-family:
'Courier New', courier, monaco, monospace, sans-serif; font-size: 12pt; "><font face="arial, helvetica, sans-serif">Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.</font></div><div style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 12pt; "><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div style="font-size: 12pt; font-family: 'Courier New', courier, monaco, monospace, sans-serif; "><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><font size="2" face="Arial"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> Jamie Holly <hovercrafter@earthlink.net><br><b><span style="font-weight: bold;">To:</span></b> development@drupal.org<br><b><span style="font-weight: bold;">Sent:</span></b> Sunday, June 12, 2011 8:33 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re:
[development] Get the form for a node<br></font><br>
<div id="yiv1729833682">
Actually it's:<br>
<br>
module_load_include('inc', 'node', 'node.pages');<br>
$form = drupal_get_form($node->type .'_node_form', $node);<br>
<br>
[OR]<br>
<br>
$form = node_page_edit($node); // This will also set the page title
with the node title<br>
<br>
Make sure to load the node.pages.inc file so that everything <br>
<br>
<br>
<pre class="yiv1729833682moz-signature">Jamie Holly
http://www.intoxination.net
http://www.hollyit.net</pre>
<br>
On 6/12/2011 8:24 PM, Ms. Nancy Wichmann wrote:
<blockquote type="cite">
<div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-size: 12pt; font-family: arial, helvetica, sans-serif; ">
<div style="font-family: arial, helvetica, sans-serif; "><span>You
can look at the node.module (probably actually
node.pages.inc?) and get the form name, but I think it is
actually "node_form_<i>type.</i>" And I believe you'll need
to recast the object to an array. Something like,</span></div>
<div style="font-family: arial, helvetica, sans-serif; "><span><br>
</span></div>
<div><span><font class="yiv1729833682Apple-style-span" face="'Courier New',
courier, monaco, monospace, sans-serif">$form =
drupal_get_form('node_form_article', (array) $node);</font><br>
</span></div>
<div style="font-family: arial, helvetica, sans-serif; "> </div>
<div style="font-family: arial, helvetica, sans-serif; "><font size="4" color="#ff007f" face="bookman old style, new york,
times, serif"><i><b>Nancy</b></i></font></div>
<div style="font-family: arial, helvetica, sans-serif; "> <br>
</div>
<div style="font-family: arial, helvetica, sans-serif; "><font face="arial, helvetica, sans-serif">Injustice anywhere is a
threat to justice everywhere. -- Dr. Martin L. King, Jr.</font></div>
<div style="font-family: arial, helvetica, sans-serif; "><br>
<blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;">
<div style="font-size: 12pt; font-family: arial, helvetica, sans-serif; ">
<div style="font-size: 12pt; font-family: times, serif; "><font size="2" face="Arial">
<hr size="1"><b><span style="font-weight:bold;">From:</span></b>
Fernando Conceição</font></div>
<div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; " class="yiv1729833682yui_3_2_0_10_130779520168177"><br>
</div>
<div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; " class="yiv1729833682yui_3_2_0_10_130779520168177">I have searched a
lot, but dont find the right way to do this.<br>
So what i want is to load the form for a node, the same
form as if i am editing a node, something like:<br>
<br>
$node = node_load(1);<br>
$form = drupal_get_form('article_node_form', $node);<br>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div><br><br></div></div></blockquote></div></div></body></html>