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) »
  • uf_field, uf_group and custom_field, custom_group table relations?
Pages: [1]

Author Topic: uf_field, uf_group and custom_field, custom_group table relations?  (Read 791 times)

axlroach

  • I’m new here
  • *
  • Posts: 22
  • Karma: 0
uf_field, uf_group and custom_field, custom_group table relations?
July 09, 2009, 03:00:14 pm
Hi all,

Do the civicrm_uf_field and civicrm_uf_group tables relate in some way to the civicrm_custom_field and civicrm_custom_group tables in some way that I'm missing?  I ask because I want to programmatically get a list of all civicrm profiles and their fields and then map those to the values of those fields for a given user.  I can get the profiles with civicrm_uf_profile_groups_get(), and the fields with CRM_Core_BAO_CustomField::getFields(), but I'm not sure how to tell which fields go with which profile.  Does anyone have experience with this?

Thanks,
aj



Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: uf_field, uf_group and custom_field, custom_group table relations?
July 09, 2009, 04:24:53 pm

profile group or custom group is basically just a container of fields

a profile fields == either a standard field (first name, last name, gender etc) OR a custom field for that specific profile type

ping us on IRC if u need more details / clarification

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • uf_field, uf_group and custom_field, custom_group table relations?

This forum was archived on 2017-11-26.