<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:12pt"><DIV></DIV>
<DIV>That's the approach I took several months ago. Works for me.<BR> </DIV>
<P><FONT face="bookman old style, new york, times, serif" color=#ff007f size=4><EM><STRONG>Nancy</STRONG></EM></FONT></P>
<P> </P>
<P><FONT face="arial, helvetica, sans-serif">Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.</FONT></P>
<DIV><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif"><BR>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"><FONT face=Tahoma size=2>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Eric Schaefer <eric.schaefer@eas-consulting.de><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> Drupal Development Mailing List <development@drupal.org><BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Fri, November 12, 2010 8:34:47 AM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> [development] Create a node revision programatically<BR></FONT><BR>Hi List,<BR><BR>I want to create a new revision of a node from a module. I could not<BR>find a function for that in the api docs (D6). I figured out (by<BR>poking at node.module) I could just set $node->revision to TRUE and<BR>set $node->log to something meaningful and it works. But since I did<BR>not find any documentation about this I thought I should ask here<BR>before breaking anything. Is my approach correct or will it do<BR>something "surprising"?<BR><BR>Regards,<BR>Eric<BR></DIV></DIV></div></body></html>