Created
July 17, 2012 21:36
-
-
Save steffenr/3132267 to your computer and use it in GitHub Desktop.
create node on webform submission
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ "rules_create_node_for_webform_data" : { | |
"LABEL" : "create node for webform data", | |
"PLUGIN" : "reaction rule", | |
"REQUIRES" : [ "rules", "webform_rules" ], | |
"ON" : [ "webform_rules_submit" ], | |
"IF" : [ | |
{ "node_is_of_type" : { "node" : [ "node" ], "type" : { "value" : { "webform" : "webform" } } } } | |
], | |
"DO" : [ | |
{ "entity_create" : { | |
"USING" : { | |
"type" : "node", | |
"param_type" : "article", | |
"param_title" : "[data:name-value]", | |
"param_author" : [ "user" ] | |
}, | |
"PROVIDE" : { "entity_created" : { "entity_created" : "Created entity" } } | |
} | |
}, | |
{ "entity_save" : { "data" : [ "entity-created" ] } } | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment