Problem/Motivation
There is not a way to create a user contact mapping when a user is created that only looks for an existing contact.
Steps to reproduce
Proposed resolution
Add a new setting to control if the event is fired when a user is created.
Remaining tasks
User interface changes
A new checkbox is added to the top of create_event details.
API changes
This new settings controls if the event is fired. The existing auto_create_user_contact_mapping will be used inside the event subscriber.
Add another method to the Event Subscriber that handles contact creation. This new method is also subscribed with a heavier weight. A contact is only created if the user contact mapping does not have a contact.
Data model changes
crm.user_contact_mapping.settings:
Add a new property: fire_event_user_insert
Create crm_update_1001for the new property. Its value should be the same as auto_create_user_contact_mapping
Issue fork crm-3569188
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
bluegeek9 commentedComment #4
bluegeek9 commented