Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { "rules_friends_tag_account_create" : {
- "LABEL" : "Friends Tag Account Create",
- "PLUGIN" : "reaction rule",
- "OWNER" : "rules",
- "TAGS" : [ "CiviCRM", "CiviCRM User" ],
- "REQUIRES" : [ "civicrm", "rules", "og" ],
- "ON" : { "civicrm_entity_tag_create" : [] },
- "IF" : [
- { "NOT civicrm_entity_user_exists" : { "civicrm_contact" : [ "civicrm-entity-tag:entity-id-contact" ] } },
- { "data_is" : {
- "data" : [ "civicrm-entity-tag:entity-table" ],
- "value" : "civicrm_contact"
- }
- },
- { "data_is" : { "data" : [ "civicrm-entity-tag:tag-id" ], "value" : "33" } }
- ],
- "DO" : [
- { "civicrm_entity_action_create_user" : {
- "USING" : {
- "civicrm_contact" : [ "civicrm-entity-tag:entity-id-contact" ],
- "is_active" : "1",
- "notify" : "0",
- "signin" : "0"
- },
- "PROVIDE" : { "civicrm_user" : { "createddrupaluser" : "Created Drupal User" } }
- }
- },
- { "user_add_role" : {
- "account" : [ "createddrupaluser" ],
- "roles" : { "value" : { "6" : "6" } }
- }
- },
- { "entity_fetch" : {
- "USING" : { "type" : "node", "id" : "2706" },
- "PROVIDE" : { "entity_fetched" : { "aleph_network" : "aleph_network" } }
- }
- },
- { "og_group_content_add" : { "entity" : [ "createddrupaluser" ], "group" : [ "aleph-network" ] } }
- ]
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement