/ Published in: PHP

Here's a nice example where I've taken inspiration [?] http://drupal.org/node/82661#comment-153461
Expand |
Embed | Plain Text
$node = new StdClass(); $node->title = "test3"; $node->type = 'clasificados'; $node->body = "booooooooody"; $node->status = 1; $node->format = 1; $node->moderate = 0; $node->promote = 0; $node->sticky = 0; $node->revision = 0; $node = node_submit($node); node_save($node);
You need to login to post a comment.