CRM_Custom_Form_Group - -1 spaghetti
authorTim Otten <totten@civicrm.org>
Wed, 14 Sep 2016 03:22:48 +0000 (20:22 -0700)
committerTim Otten <totten@civicrm.org>
Wed, 14 Sep 2016 03:41:43 +0000 (20:41 -0700)
commita9c1ff4350d620cd0055f3130f010ac0b14420ed
tree64f3ad98b3d48ee4f3b05e075c2a0b53dcec4295
parentb5bbb074974fcced7c79defd4b495f937eaa2ad6
CRM_Custom_Form_Group - -1 spaghetti

So...  there's a helper function `getContactRelationshipType`
which provided a restricted listing of relationship-types (as they apply
to specific contact types or subtypes).

But what if you wanted the list of relationship-types, without filtering by
contact-type?  You *could* go through and query
eve.ry.sin.gle.contac.ttype.and.cont.act.subty.pe.  And then merge all of
these lists.  And then parse and remerge the strange intermediate format.

Or...  you just load the list you wanted...  directly...  in the format you
wanted...
CRM/Custom/Form/Group.php