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) »
  • location_type_id Array is not valid
Pages: [1]

Author Topic: location_type_id Array is not valid  (Read 547 times)

jeffmikels

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
location_type_id Array is not valid
March 26, 2013, 10:26:22 pm
The following code worked on 4.1, but now that I have upgraded to 4.2 it doesn't anymore:

Code: [Select]
$params = Array('contact_id' => $cid, 'location_type_id' => array( 'IN' => array( '0' => $HOME_ID, '1' => $WORK_ID)));
$emails = call_civicrm('Email', 'get', $params);

Can someone tell me (1) How this should be done in the latest version of CiviCRM, and (2) Where the "real" documentation for things like this are stored. Do I need to simply read all the api code to learn these advanced techniques because the documentation on the website and the example files only do the most rudimentary things with the API.

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

This forum was archived on 2017-11-26.