CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Inverse of crm_uf_get_match_id()?
Pages: [1]

Author Topic: Inverse of crm_uf_get_match_id()?  (Read 1618 times)

posco

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 8
Inverse of crm_uf_get_match_id()?
February 04, 2008, 08:32:10 am
I was wondering if an inverse of this function existed. I want to be able to pass a function a CiviCRM Contact ID and have returned a Drupal User ID. I saw this function posted on the forums and can't find the documentation for it.

Does anyone know if this exists in the CivCRM API?

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Inverse of crm_uf_get_match_id()?
February 04, 2008, 08:52:39 am
check http://svn.civicrm.org/civicrm/trunk/api/UFGroup.php.

You can also use function CRM_Core_BAO_UFMatch::getUFId( $contactId ); (where $contactId is civicrm contact id)

HTH

kurund
Found this reply helpful? Support CiviCRM

posco

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 8
Re: Inverse of crm_uf_get_match_id()?
February 04, 2008, 10:18:45 am
That's exactly what I was looking for!

Thanks for the link to the UFGroup.php file, that will be an excellent resource for the future.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Inverse of crm_uf_get_match_id()?

This forum was archived on 2017-11-26.