6 function profile_set_example(){
11 'first_name' => 'abc2',
12 'last_name' => 'xyz2',
13 'email-Primary' => 'abc2.xyz2@gmail.com',
14 'phone-1-1' => '022 321 826',
15 'country-1' => '1013',
16 'state_province-1' => '1000',
19 $result = civicrm_api( 'profile','set',$params );
25 * Function returns array of result expected from previous function
27 function profile_set_expectedresult(){
29 $expectedResult = array(
37 'contact_type' => 'Individual',
38 'contact_sub_type' => '',
45 'legal_identifier' => '',
46 'external_identifier' => '',
47 'sort_name' => 'xyz2, abc2',
48 'display_name' => 'abc2 xyz2',
52 'preferred_communication_method' => '',
53 'preferred_language' => 'en_US',
54 'preferred_mail_format' => 'Both',
55 'hash' => '67eac7789eaee00',
57 'first_name' => 'abc2',
59 'last_name' => 'xyz2',
62 'email_greeting_id' => '1',
63 'email_greeting_custom' => '',
64 'email_greeting_display' => 'Dear',
65 'postal_greeting_id' => '1',
66 'postal_greeting_custom' => '',
67 'postal_greeting_display' => 'Dear',
68 'addressee_id' => '1',
69 'addressee_custom' => '',
70 'addressee_display' => '',
75 'deceased_date' => '',
76 'household_name' => '',
77 'primary_contact_id' => '',
78 'organization_name' => '',
80 'user_unique_id' => '',
81 'created_date' => '20120130621222105',
82 'modified_date' => '2012-11-14 16:02:35',
87 return $expectedResult ;
92 * This example has been generated from the API test suite. The test that created it is called
94 * testProfileSet and can be found in
95 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/ProfileTest.php
97 * You can see the outcome of the API tests at
98 * http://tests.dev.civicrm.org/trunk/results-api_v3
100 * To Learn about the API read
101 * http://book.civicrm.org/developer/current/techniques/api/
103 * and review the wiki at
104 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
106 * Read more about testing here
107 * http://wiki.civicrm.org/confluence/display/CRM/Testing
109 * API Standards documentation:
110 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards