[development] Create a node revision programatically
brice.favre at gmail.com
Fri Nov 12 13:36:35 UTC 2010
I did it last week and it seems to work. No problem for me.
2010/11/12 Eric Schaefer <eric.schaefer at eas-consulting.de>
> Hi List,
> I want to create a new revision of a node from a module. I could not
> find a function for that in the api docs (D6). I figured out (by
> poking at node.module) I could just set $node->revision to TRUE and
> set $node->log to something meaningful and it works. But since I did
> not find any documentation about this I thought I should ask here
> before breaking anything. Is my approach correct or will it do
> something "surprising"?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the development