{ "rules_profile" : { "LABEL" : "Profile", "PLUGIN" : "reaction rule", "REQUIRES" : [ "rules", "userpoints_rules", "rules_scheduler" ], "ON" : [ "node_insert" ], "IF" : [ { "entity_has_field" : { "entity" : [ "node" ], "field" : "field_purchase" } }, { "data_is" : { "data" : [ "node:field-purchase" ], "value" : "1" } }, { "entity_has_field" : { "entity" : [ "node" ], "field" : "field_date_to_use_for_unpublishi" } } ], "DO" : [ { "userpoints_action_grant_points" : { "user" : [ "node:author" ], "points" : "-10", "tid" : "0", "entity" : [ "" ], "description" : "10 points deducted from author of profile creator", "operation" : "Removes 10 Points", "reference" : "10 points deducted from author of profile creator", "display" : 1, "moderate" : "approved" } }, { "schedule" : { "component" : "rules_unpublish", "date" : "+1 day", "identifier" : "Unpublish [node:nid]", "param_node_to_unpublish" : [ "node" ] } } ] } }