Revision: 859
Updated Code
at August 16, 2006 08:17 by weitzman
Updated Code
<?php
require 'includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
global $mypost, $form_post_key;
$mypost['edit']['title'] = 'robo-post: '. format_date(time(), 'small');
$mypost['edit']['type'] = 'story'; // not needed?
$mypost['edit']['body'] = 'viva druplicon';
$form_post_key = 'mypost';
$output = drupal_get_form('story_node_form', array()); // that final array() should be optional
print theme('page', $output);
Revision: 858
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at August 16, 2006 08:15 by weitzman
Initial Code
<?php
require 'includes/bootstrap.inc';
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
global $mypost, $form_post_key;
$mypost['edit']['title'] = 'robo-post: '. format_date(time(), 'small');
$mypost['edit']['type'] = 'story';
$mypost['edit']['body'] = 'viva druplicon';
$form_post_key = 'mypost';
$output = drupal_get_form('story_node_form', array());
print theme('page', $output);
Initial URL
Initial Description
Initial Title
programmtically submit a node
Initial Tags
textmate, script, drupal
Initial Language
PHP