Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $timestamp = 1414790760;
- $node = new stdClass();
- $node->uid = '1';
- $node->type = 'article';
- node_object_prepare($node);
- $node->created = $timestamp;
- $node->title = $title;
- $node->status = 1;
- $node->promote = 0;
- $node->sticky = 0;
- $node->language = 'ru';
- $node->body['und'][0]['value'] = $body;
- $node->body['und'][0]['format'] = 'filtered_html';
- node_save($node);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement