3 * Test Generated example of using uf_join create API
6 function uf_join_create_example(){
8 'module' => 'CiviContribute',
9 'entity_table' => 'civicrm_contribution_page',
18 $result = civicrm_api3('uf_join', 'create', $params);
20 catch (CiviCRM_API3_Exception
$e) {
22 $errorMessage = $e->getMessage();
23 $errorCode = $e->getErrorCode();
24 $errorData = $e->getExtraParams();
25 return array('error' => $errorMessage, 'error_code' => $errorCode, 'error_data' => $errorData);
32 * Function returns array of result expected from previous function
34 function uf_join_create_expectedresult(){
36 $expectedResult = array(
45 'module' => 'CiviContribute',
46 'entity_table' => 'civicrm_contribution_page',
49 'uf_group_id' => '11',
54 return $expectedResult;
59 * This example has been generated from the API test suite. The test that created it is called
61 * testCreateUFJoin and can be found in
62 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/UFJoinTest.php
64 * You can see the outcome of the API tests at
65 * http://tests.dev.civicrm.org/trunk/results-api_v3
67 * To Learn about the API read
68 * http://book.civicrm.org/developer/current/techniques/api/
70 * and review the wiki at
71 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
73 * Read more about testing here
74 * http://wiki.civicrm.org/confluence/display/CRM/Testing
76 * API Standards documentation:
77 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards