Skip to content

Instantly share code, notes, and snippets.

@robdecker
Last active November 2, 2019 02:03
Show Gist options
  • Save robdecker/3a154832237d831bb8c3 to your computer and use it in GitHub Desktop.
Save robdecker/3a154832237d831bb8c3 to your computer and use it in GitHub Desktop.
[Rules: on content publish] #d7
{ "rules_on_node_publish" : {
"LABEL" : "On node publish",
"PLUGIN" : "reaction rule",
"REQUIRES" : [ "rules" ],
"ON" : [ "node_presave" ],
"IF" : [
{ "data_is" : { "data" : [ "node:status" ], "value" : "1" } },
{ "AND" : [] },
{ "data_is" : { "data" : [ "node-unchanged:status" ], "value" : "0" } }
],
"DO" : []
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment