Advertisement
Guest User

Untitled

a guest
Jan 3rd, 2013
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement