--- node.rules.inc 2009-07-03 12:08:09.000000000 -0500 +++ node.rules.inc_new 2009-07-03 12:04:27.000000000 -0500 @@ -192,6 +192,14 @@ function node_rules_action_info() { ), 'module' => 'Node', ), + 'rules_action_set_node_body' => array( + 'label' => t('Set content body'), + 'arguments' => array( + 'node' => array('type' => 'node', 'label' => t('Content')), + 'body' => array('type' => 'string', 'label' => t('Body')), + ), + 'module' => 'Node', + ), 'rules_action_add_node' => array( 'label' => t('Add new content'), 'arguments' => array( @@ -260,6 +268,15 @@ function rules_action_set_node_title($no } /** + * Sets the content body + */ +function rules_action_set_node_body($node, $body) { + $node->body= $body; + return array('node' => $node); +} + + +/** * Action "Add a node" */ function rules_action_add_node($author, $title, $settings) {