Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Rules Export - check for taxonomy term and unpublish Node
{ "rules_set_forum_content_unpublished" : {
"LABEL" : "set forum content unpublished",
"PLUGIN" : "reaction rule",
"REQUIRES" : [ "rules" ],
"ON" : [ "node_presave" ],
"IF" : [
{ "node_is_of_type" : { "node" : [ "node" ], "type" : { "value" : { "forum" : "forum" } } } },
{ "data_is" : { "data" : [ "node:taxonomy-forums" ], "value" : "3" } }
],
"DO" : [
{ "drupal_message" : {
"message" : "Hello you just saved a Content to Forum b",
"type" : "warning"
}
},
{ "data_set" : { "data" : [ "node:status" ], "value" : "0" } }
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment