4 Get entities and location block in 1 api call
6 function loc_block_get_example(){
13 $result = civicrm_api( 'loc_block','get',$params );
19 * Function returns array of result expected from previous function
21 function loc_block_get_expectedresult(){
23 $expectedResult = array(
31 'location_type_id' => '1',
34 'street_address' => '987654321',
35 'manual_geo_code' => 0,
39 'location_type_id' => '1',
40 'email' => 'test2@loc.block',
48 'location_type_id' => '1',
51 'phone' => '987654321',
52 'phone_numeric' => '987654321',
56 'location_type_id' => '1',
59 'phone' => '456-7890',
60 'phone_numeric' => '4567890',
64 return $expectedResult ;
69 * This example has been generated from the API test suite. The test that created it is called
71 * testCreateLocBlockEntities and can be found in
72 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/LocBlockTest.php
74 * You can see the outcome of the API tests at
75 * http://tests.dev.civicrm.org/trunk/results-api_v3
77 * To Learn about the API read
78 * http://book.civicrm.org/developer/current/techniques/api/
80 * and review the wiki at
81 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
83 * Read more about testing here
84 * http://wiki.civicrm.org/confluence/display/CRM/Testing
86 * API Standards documentation:
87 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards