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 »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • civicrm_uf_join_UFGroupId_find
Pages: [1]

Author Topic: civicrm_uf_join_UFGroupId_find  (Read 978 times)

FatherShawn

  • Ask me questions
  • ****
  • Posts: 372
  • Karma: 25
    • C3 Design
  • CiviCRM version: 4.2.11
  • CMS version: Drupal 7.23
  • MySQL version: 5.5.32
  • PHP version: 5.3.10
civicrm_uf_join_UFGroupId_find
May 20, 2010, 06:38:22 am
It looks to me like the parameters for civicrm_uf_join_UFGroupId_find (based on error messages) must include one of:
  • entity_table
  • entity_id
  • weight

So that
Code: [Select]
  $searchParams  = array('module' => 'User Registration');
  $ufGroupId = civicrm_uf_join_UFGroupId_find( $searchParams );

doesn't work.  Is there another route using the API to select profiles marked for user registration?

Since neither entity_table nor entity_id is always populated, is this a bug or as designed?
Lead Developer, C3 Design.
Twitter: @FatherShawn

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: civicrm_uf_join_UFGroupId_find
May 20, 2010, 08:27:07 am

That API does not support getting 'module' related profiles. typically there can be more than one of them

the internal function which we use to get the profiles associated with this is:

CRM_Core_BAO_UFGroup::getModuleUFGroup('User Registration');

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

FatherShawn

  • Ask me questions
  • ****
  • Posts: 372
  • Karma: 25
    • C3 Design
  • CiviCRM version: 4.2.11
  • CMS version: Drupal 7.23
  • MySQL version: 5.5.32
  • PHP version: 5.3.10
Re: civicrm_uf_join_UFGroupId_find
May 24, 2010, 07:02:27 pm
Thanks, Lobo

That's a big help  :)
Lead Developer, C3 Design.
Twitter: @FatherShawn

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • civicrm_uf_join_UFGroupId_find

This forum was archived on 2017-11-26.