From 5a159702f418b2c818aa72bc7b751337c930202c Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Mon, 25 Aug 2014 13:35:20 +1200 Subject: [PATCH] CRM-15168 fix setting api metadata titles --- api/v3/Setting.php | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/api/v3/Setting.php b/api/v3/Setting.php index 77a39489ad..125fb18fb7 100644 --- a/api/v3/Setting.php +++ b/api/v3/Setting.php @@ -114,9 +114,10 @@ function civicrm_api3_setting_getdefaults(&$params){ */ function _civicrm_api3_setting_getdefaults_spec(&$params) { $params['domain_id'] = array( - 'api.default' => 'current_domain', - 'description' => 'Defaults may differ by domain - if you do not pass in a domain id this will default to the current domain - an array or "all" are acceptable values for multiple domains' + 'api.default' => 'current_domain', + 'description' => 'Defaults may differ by domain - if you do not pass in a domain id this will default to the current domain + an array or "all" are acceptable values for multiple domains', + 'title' => 'Setting Domain', ); } @@ -151,7 +152,8 @@ function _civicrm_api3_setting_revert_spec(&$params) { $params['domain_id'] = array( 'api.default' => 'current_domain', 'description' => 'Defaults may differ by domain - if you do not pass in a domain id this will default to the current domain - an array or "all" are acceptable values for multiple domains' + an array or "all" are acceptable values for multiple domains', + 'title' => 'Setting Domain', ); } @@ -183,9 +185,10 @@ function _civicrm_api3_setting_fill_spec(&$params) { $params['name'] = array('title' => 'Setting Name belongs to'); $params['component_id'] = array('title' => 'id of relevant component'); $params['domain_id'] = array( - 'api.default' => 'current_domain', - 'description' => 'Defaults may differ by domain - if you do not pass in a domain id this will default to the current domain - an array or "all" are acceptable values for multiple domains' + 'api.default' => 'current_domain', + 'title' => 'Setting Domain', + 'description' => 'Defaults may differ by domain - if you do not pass in a domain id this will default to the current domain + an array or "all" are acceptable values for multiple domains' ); } @@ -214,10 +217,12 @@ function civicrm_api3_setting_create($params) { function _civicrm_api3_setting_create_spec(&$params) { $params['domain_id'] = array( 'api.default' => 'current_domain', + 'title' => 'Setting Domain', 'description' => 'if you do not pass in a domain id this will default to the current domain an array or "all" are acceptable values for multiple domains' ); $params['group'] = array( + 'title' => 'Setting Group', 'description' => 'if you know the group defining it will make the api more efficient' ) ; @@ -245,11 +250,13 @@ function civicrm_api3_setting_get($params) { */ function _civicrm_api3_setting_get_spec(&$params) { $params['domain_id'] = array( - 'api.default' => 'current_domain', - 'description' => 'if you do not pass in a domain id this will default to the current domain' + 'api.default' => 'current_domain', + 'title' => 'Setting Domain', + 'description' => 'if you do not pass in a domain id this will default to the current domain' ); $params['group'] = array( - 'description' => 'if you know the group defining it will make the api more efficient' + 'title' => 'Setting Group', + 'description' => 'if you know the group defining it will make the api more efficient' ) ; } @@ -304,7 +311,8 @@ function _civicrm_api3_setting_getvalue_spec(&$params) { 'title' => 'Contact Id', ); $params['domain_id'] = array( - 'description' => 'if you do not pass in a domain id this will default to the current domain' + 'title' => 'Setting Domain', + 'description' => 'if you do not pass in a domain id this will default to the current domain' ); } -- 2.25.1