array ( 'rules' => array ( 'rules_1' => array ( '#type' => 'rule', '#set' => 'event_flag_flagged_testflag', '#label' => 'create content and populate a node reference', '#active' => 1, '#weight' => '0', '#categories' => array ( ), '#status' => 'custom', '#conditions' => array ( ), '#actions' => array ( 0 => array ( '#weight' => 0, '#info' => array ( 'label' => 'Load content by id', 'arguments' => array ( 'nid' => array ( 'type' => 'number', 'label' => 'Content ID', ), 'vid' => array ( 'type' => 'number', 'label' => 'Content Revision ID', 'description' => 'If you want to load a specific revision, specify it\'s revision id. Else leave it empty to load the current revision.', 'required' => false, ), ), 'new variables' => array ( 'node_loaded' => array ( 'label' => 'content with id [node:nid]', 'type' => 'node', 'label callback' => 'rules_action_load_node_variable_label', ), ), 'module' => 'Node', ), '#name' => 'rules_action_load_node', '#settings' => array ( 'nid' => '[node:nid]', 'vid' => '', '#argument map' => array ( 'node_loaded' => 'node_loaded', ), '#eval input' => array ( 'token_rules_input_evaluator' => array ( 'nid' => array ( 0 => 'node', ), ), ), ), '#type' => 'action', ), 1 => array ( '#type' => 'action', '#settings' => array ( 'title' => 'test', 'type' => 'page', 'node_access' => 0, '#argument map' => array ( 'author' => 'flagging_user', 'node_added' => 'node_added', ), ), '#name' => 'rules_action_add_node', '#info' => array ( 'label' => 'Add new content', 'arguments' => array ( 'author' => array ( 'type' => 'user', 'label' => 'User, who is set as author', ), 'title' => array ( 'type' => 'string', 'label' => 'Title', 'description' => 'The title of the newly created content.', ), ), 'new variables' => array ( 'node_added' => array ( 'label' => 'new content of type page', 'type' => 'node', 'save' => true, 'label callback' => 'rules_action_add_node_variable_label', ), ), 'module' => 'Node', ), '#weight' => 1, ), 2 => array ( '#weight' => 3, '#info' => array ( 'label' => 'Populate flagged content\'s field \'field_page2\'', 'arguments' => array ( 'node' => array ( 'type' => 'node', 'label' => 'Content', ), ), 'eval input' => array ( 0 => 'code', ), 'module' => 'CCK', ), '#name' => 'content_rules_action_populate_field', '#settings' => array ( 'field_name' => 'field_page2', '#argument map' => array ( 'node' => 'node', ), 'value' => array ( 0 => array ( 'nid' => NULL, ), ), 'code' => 'return array(0 => array(\'nid\' => $node->nid));', ), '#type' => 'action', ), ), '#version' => 6003, ), ), )