Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { "rules_test_2" : {
- "LABEL" : "test 2",
- "PLUGIN" : "reaction rule",
- "OWNER" : "rules",
- "REQUIRES" : [ "rules" ],
- "ON" : { "user_insert" : [] },
- "DO" : [
- { "entity_query" : {
- "USING" : {
- "type" : "user",
- "property" : "field_passager_id",
- "value" : [ "account:field-passager-id" ],
- "limit" : "100"
- },
- "PROVIDE" : { "entity_fetched" : { "entity_fetched" : "Fetched entity" } }
- }
- },
- { "LOOP" : {
- "USING" : { "list" : [ "entity-fetched" ] },
- "ITEM" : { "list_item" : "Current list item" },
- "DO" : [
- { "data_set" : { "data" : [ "list-item:field-passeur-io" ], "value" : "0" } }
- ]
- }
- },
- { "data_set" : { "data" : [ "account:field-passeur-io" ], "value" : "1" } }
- ]
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement