<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Verdana size=2><SPAN class=000094215-31082006>I haven't had a
chance to look at the details of the nodeapi patch in question, but I will say
that programmatic submission of data using forms just got a bit simpler, as <A
href="http://drupal.org/node/80470">http://drupal.org/node/80470</A> was
committed. It adds a 'drupal_execute()' function that processes forms without
any of the rendering/ui cruft.</SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN
class=000094215-31082006></SPAN></FONT> </DIV>
<DIV><FONT face=Verdana size=2><SPAN class=000094215-31082006>changing a node,
for example, would involve the following:</SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN
class=000094215-31082006></SPAN></FONT> </DIV>
<DIV><FONT face=Verdana size=2><SPAN class=000094215-31082006>$node -
node_load(1);</SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN class=000094215-31082006>$values['title'] =
'My new title!';</SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN
class=000094215-31082006>drupal_execute($node->type . '_node_form', $values,
$node);</SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN
class=000094215-31082006></SPAN></FONT> </DIV>
<DIV><FONT face=Verdana size=2><SPAN class=000094215-31082006>It's different,
yes. But the advantage is that you will get all of the validation logic, all of
the modifications made by form_alter code (like taxonomy_defaults), and so on,
for free.</SPAN></FONT></DIV>
<DIV><FONT face=Verdana size=2><SPAN
class=000094215-31082006></SPAN></FONT> </DIV>
<DIV><FONT face=Verdana size=2><SPAN class=000094215-31082006>I can't offer any
insight into the actual nodeapi changes, but hopefully the above snippet helps
assuage some fears about programmatic content
changes.</SPAN></FONT></DIV></BODY></HTML>