Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 3rd, 2013  |  syntax: None  |  size: 1.15 KB  |  views: 34  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. { "rules_profile" : {
  2.     "LABEL" : "Profile",
  3.     "PLUGIN" : "reaction rule",
  4.     "REQUIRES" : [ "rules", "userpoints_rules", "rules_scheduler" ],
  5.     "ON" : [ "node_insert" ],
  6.     "IF" : [
  7.       { "entity_has_field" : { "entity" : [ "node" ], "field" : "field_purchase" } },
  8.       { "data_is" : { "data" : [ "node:field-purchase" ], "value" : "1" } },
  9.       { "entity_has_field" : { "entity" : [ "node" ], "field" : "field_date_to_use_for_unpublishi" } }
  10.     ],
  11.     "DO" : [
  12.       { "userpoints_action_grant_points" : {
  13.           "user" : [ "node:author" ],
  14.           "points" : "-10",
  15.           "tid" : "0",
  16.           "entity" : [ "" ],
  17.           "description" : "10 points deducted from author of profile creator",
  18.           "operation" : "Removes 10 Points",
  19.           "reference" : "10 points deducted from author of profile creator",
  20.           "display" : 1,
  21.           "moderate" : "approved"
  22.         }
  23.       },
  24.       { "schedule" : {
  25.           "component" : "rules_unpublish",
  26.           "date" : "+1 day",
  27.           "identifier" : "Unpublish [node:nid]",
  28.           "param_node_to_unpublish" : [ "node" ]
  29.         }
  30.       }
  31.     ]
  32.   }
  33. }