Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-3321

Improvement to v2 relationship API: eliminate need for contact object

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.0, 2.1
    • Fix Version/s: 2.2.2
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      The old relationship API has a function called crm_get_relationships() that allowed you to grab a contact's relationships. However, it requires a contact object as input, and v2 API only deals in contact arrays (civicrm_contact_get, civicrm_contact_search).

      So, here's a new version, civicrm_get_relationships() that you can stick in the v2/Relationship.php API file. I haven't tested much at all, but the code is pretty simple so it should work as before.

      You can find the code here: http://forum.civicrm.org/index.php?action=dlattach;topic=3794.0;attach=428

      Forum post here: http://forum.civicrm.org/index.php/topic,3794.msg16726.html#msg16726

        Attachments

          Activity

            People

            • Assignee:
              neha.saraph Neha Kulkarni
              Reporter:
              jesse_idc Jesse Mortenson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: