CiviCRM User Reference
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Downloads
Component created
Component changed
Component body
#NOD8CX: I have no plans to have a full D8 release within even a year of when Drupal 8 is released unless someone else volunteers to co-maintain that branch. This is not meant as criticism of the enormous effort others have but into D8, but an attempt to honestly inform anyone using this module of my plans. If you use this module and want to see it upgraded, open an issue asking how you can get involved and make that happen.
This module combines the functionality of a References or Entity Reference User Reference field with CiviCRM's Contact Reference. This allows you to look up a user by their contact information, but store the uid for the Drupal user instead of the cid of the contact.
The module also includes a function to return just the username without the [uid:x] formatting. This allows you to easily form_alter author fields to use the CiviCRM contact information for lookups.
$form['name']['#autocomplete_path'] = 'civicrm_user_reference/autocomplete-nouid';
