From 24e067898f6aa64ce4cd0d3883a9007aca8c5ca4 Mon Sep 17 00:00:00 2001 From: eileen Date: Fri, 12 Apr 2013 16:57:28 +1200 Subject: [PATCH] updated version of examples --- api/v3/examples/Setting/CreateAllDomains.php | 6 ----- api/v3/examples/SettingGetfields.php | 28 ++++++++++++++++++-- 2 files changed, 26 insertions(+), 8 deletions(-) diff --git a/api/v3/examples/Setting/CreateAllDomains.php b/api/v3/examples/Setting/CreateAllDomains.php index 9dc4d348c7..62de561da0 100644 --- a/api/v3/examples/Setting/CreateAllDomains.php +++ b/api/v3/examples/Setting/CreateAllDomains.php @@ -8,7 +8,6 @@ $params = array( 'version' => 3, 'domain_id' => 'all', 'uniq_email_per_site' => 1, - 'debug' => 1, ); $result = civicrm_api( 'setting','create',$params ); @@ -36,11 +35,6 @@ function setting_create_expectedresult(){ 'uniq_email_per_site' => '1', ), ), - 'xdebug' => array( - 'peakMemory' => 127711392, - 'memory' => 123061848, - 'timeIndex' => '1357.0696148872', - ), ); return $expectedResult ; diff --git a/api/v3/examples/SettingGetfields.php b/api/v3/examples/SettingGetfields.php index 9d5a522449..869430aa52 100644 --- a/api/v3/examples/SettingGetfields.php +++ b/api/v3/examples/SettingGetfields.php @@ -21,7 +21,7 @@ function setting_getfields_expectedresult(){ $expectedResult = array( 'is_error' => 0, 'version' => 3, - 'count' => 72, + 'count' => 73, 'values' => array( 'address_standardization_provider' => array( 'group_name' => 'Address Preferences', @@ -258,7 +258,7 @@ function setting_getfields_expectedresult(){ 'group' => 'core', 'name' => 'address_format', 'type' => 'String', - 'html_type' => 'Text', + 'html_type' => 'TextArea', 'default' => '{contact.address_name} {contact.street_address} {contact.supplemental_address_1} @@ -381,6 +381,9 @@ function setting_getfields_expectedresult(){ 'name' => 'contact_autocomplete_options', 'type' => 'String', 'html_type' => 'checkboxes', + 'pseudoconstant' => array( + 'optionGroupName' => 'contact_autocomplete_options', + ), 'default' => array( '0' => '1', '1' => '2', @@ -616,6 +619,27 @@ When enabled, statistics about your CiviCRM installation are reported anonymousl 'description' => '', 'help_text' => '', ), + 'communityMessagesUrl' => array( + 'group_name' => 'CiviCRM Preferences', + 'group' => 'core', + 'name' => 'communityMessagesUrl', + 'prefetch' => 0, + 'config_only' => 1, + 'type' => 'String', + 'quick_form_type' => 'Element', + 'html_type' => 'Text', + 'html_attributes' => array( + 'size' => 64, + 'maxlength' => 128, + ), + 'default' => '*default*', + 'add' => '4.3', + 'title' => 'Community Messages URL', + 'is_domain' => 1, + 'is_contact' => 0, + 'description' => 'Service providing CiviCRM community messages', + 'help_text' => 'Use "*default*" for the system default or override with a custom URL', + ), 'resCacheCode' => array( 'group_name' => 'CiviCRM Preferences', 'group' => 'core', -- 2.25.1