This documentation relates to CiviCRM version 3.1. It's not maintained anymore.
Current version of documentation.

Profile Link to User

Skip to end of metadata
Go to start of metadata

This page refers to outdated version of CiviCRM. Check current version of documentation.


Documentation Search


CiviCRM 3.1 Documentation

Support and Participation

Developer Resources


CiviCRM book!

Make sure to check out Understanding CiviCRM as well! You can also support this project by ordering a hard copy.

Is there a way to link back to the Drupal user profile if the contact does have a Drupal user account?

QUESTION: We know that Drupal profiles can link to CiviCRM contact records. However, it's likely that contacts exist where Drupal accounts do not. Is there a way to link back to the Drupal user profile if the contact does have a Drupal user account? This is important because users want the CiviCRM profile searches, but they also want some of the associated profile information like Drupal buddy lists.

ANSWERS:
(1) The Contact Summary page in CiviCRM will always contain a link to "View User Record" if the contact is also a user. Currently, if you want to display this in a Profile, you'd need to add some logic to the php and tpl files to retrieve the user id and format a link.

(2) You can hack CRM/Profile/Selector/Listings.php and add the Drupal Profile link if it exists to the action list.

(3) civicrm_uf_match stores the link back to drupal uid where it exists for each
contact.

[Source. ]

Labels
  • None

Creative Commons License
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-Share Alike 3.0 United States Licence.