4 shows getting a variable for a current domain
6 function setting_get_example(){
9 'return' => 'uniq_email_per_site',
12 $result = civicrm_api( 'setting','get',$params );
18 * Function returns array of result expected from previous function
20 function setting_get_expectedresult(){
22 $expectedResult = array(
29 'uniq_email_per_site' => 0,
34 return $expectedResult ;
39 * This example has been generated from the API test suite. The test that created it is called
41 * testGetSetting and can be found in
42 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/SettingTest.php
44 * You can see the outcome of the API tests at
45 * http://tests.dev.civicrm.org/trunk/results-api_v3
47 * To Learn about the API read
48 * http://book.civicrm.org/developer/current/techniques/api/
50 * and review the wiki at
51 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
53 * Read more about testing here
54 * http://wiki.civicrm.org/confluence/display/CRM/Testing
56 * API Standards documentation:
57 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards