array ( 'rules' => array ( 'rules_10' => array ( '#type' => 'rule', '#set' => 'event_flag_flagged_celo', '#label' => 'aggiungi review dopo flag', '#active' => 1, '#weight' => '0', '#categories' => array ( ), '#status' => 'custom', '#conditions' => array ( 0 => array ( '#weight' => 0, '#type' => 'condition', '#settings' => array ( 'type' => array ( 'node_gallery_image' => 'node_gallery_image', ), '#argument map' => array ( 'node' => 'node', ), ), '#name' => 'rules_condition_content_is_type', '#info' => array ( 'label' => 'Flagged content is Gallery Image', 'arguments' => array ( 'node' => array ( 'type' => 'node', 'label' => 'Content', ), ), 'module' => 'Node', ), ), ), '#actions' => array ( 0 => array ( '#weight' => 1, '#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 ( '#weight' => 4, '#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 review', 'type' => 'node', 'save' => true, 'label callback' => 'rules_action_add_node_variable_label', ), ), 'module' => 'Node', ), '#name' => 'rules_action_add_node', '#settings' => array ( 'title' => '[node:title]', 'type' => 'review', 'node_access' => 0, '#argument map' => array ( 'author' => 'flagging_user', 'node_added' => 'node_added', ), '#eval input' => array ( 'token_rules_input_evaluator' => array ( 'title' => array ( 0 => 'node', ), ), ), ), '#type' => 'action', ), 2 => array ( '#type' => 'action', '#settings' => array ( 'field_name' => 'field_node_immage_ref', '#argument map' => array ( 'node' => 'node_added', ), 'value' => array ( 0 => array ( 'nid' => '', ), ), 'code' => 'return array(0 => array(\'nid\' => $node->nid)); ', 'vars' => array ( 0 => 'node', ), ), '#name' => 'content_rules_action_populate_field', '#info' => array ( 'label' => 'Populate new content of type review\'s field \'field_node_immage_ref\'', 'arguments' => array ( 'node' => array ( 'type' => 'node', 'label' => 'Content', ), ), 'eval input' => array ( 0 => 'code', 1 => 'value|0|nid', ), 'module' => 'CCK', ), '#weight' => 5, ), 3 => array ( '#weight' => 5, '#info' => array ( 'label' => 'Populate new content of type review\'s field \'field_nuovo\'', 'arguments' => array ( 'node' => array ( 'type' => 'node', 'label' => 'Content', ), ), 'eval input' => array ( 0 => 'code', 1 => 'value|0|value', ), 'module' => 'CCK', ), '#name' => 'content_rules_action_populate_field', '#settings' => array ( 'field_name' => 'field_nuovo', '#argument map' => array ( 'node' => 'node_added', ), 'value' => array ( 0 => array ( 'value' => '0', ), ), 'code' => '', 'vars' => array ( ), ), '#type' => 'action', ), ), '#version' => 6003, ), ), )