I do this a lot, so I will ad my two cents.<br><br>The following line is absolutely essential for &quot;good housekeeping&quot;, especially if you are using cck fields:<br><br>$node = node_submit($node);<br><br>However, it will NOT work if ... it shouldn&#39;t; for example if you omit (as does the above code) initializing the uid attribute.<br>
<br>So, use this function, and include all the necessary fields to make it work, it is a good test.<br><br>Larry is right, what is needed is a better solution...<br><br>saludos,<br><br>Victor Kane<br><a href="http://awebfactory.com.ar">http://awebfactory.com.ar</a><br>
<br><div class="gmail_quote">On Sat, Mar 8, 2008 at 4:21 PM, Steve Ringwood &lt;<a href="mailto:nevets@mailbag.com">nevets@mailbag.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
In drupal 4.7 and 5.x I have found that<br>
<br>
$node = node_submit($node);<br>
node_save($node);<br>
<br>
generally works.<br>
<br>
<br>
<br>
</blockquote></div><br>