6 function phone_create_example(){
9 'location_type_id' => 6,
10 'phone' => '(123) 456-7890',
16 $result = civicrm_api( 'phone','create',$params );
22 * Function returns array of result expected from previous function
24 function phone_create_expectedresult(){
26 $expectedResult = array(
35 'location_type_id' => '6',
38 'mobile_provider_id' => '',
39 'phone' => '(123) 456-7890',
41 'phone_numeric' => '',
42 'phone_type_id' => '1',
47 return $expectedResult ;
52 * This example has been generated from the API test suite. The test that created it is called
54 * testCreatePhone and can be found in
55 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/PhoneTest.php
57 * You can see the outcome of the API tests at
58 * http://tests.dev.civicrm.org/trunk/results-api_v3
60 * To Learn about the API read
61 * http://book.civicrm.org/developer/current/techniques/api/
63 * and review the wiki at
64 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
66 * Read more about testing here
67 * http://wiki.civicrm.org/confluence/display/CRM/Testing
69 * API Standards documentation:
70 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards