4 Demonstrates getvalue action - intended for runtime use as better caching than get
6 function setting_getvalue_example(){
9 'name' => 'petition_contacts',
10 'group' => 'Campaign Preferences',
13 $result = civicrm_api( 'setting','getvalue',$params );
19 * Function returns array of result expected from previous function
21 function setting_getvalue_expectedresult(){
23 $expectedResult = 'Petition Contacts';
25 return $expectedResult ;
30 * This example has been generated from the API test suite. The test that created it is called
32 * testGetValue and can be found in
33 * http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/SettingTest.php
35 * You can see the outcome of the API tests at
36 * http://tests.dev.civicrm.org/trunk/results-api_v3
38 * To Learn about the API read
39 * http://book.civicrm.org/developer/current/techniques/api/
41 * and review the wiki at
42 * http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
44 * Read more about testing here
45 * http://wiki.civicrm.org/confluence/display/CRM/Testing
47 * API Standards documentation:
48 * http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards