From: Eileen McNaughton Date: Mon, 25 Aug 2014 01:21:55 +0000 (+1200) Subject: CRM-15168 add some titles inthe API layer X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1fdb479ffa92685590df7c6669f14ce0b4bdc927;p=civicrm-core.git CRM-15168 add some titles inthe API layer --- diff --git a/api/v3/ActivityType.php b/api/v3/ActivityType.php index e70ce15d0d..8a9328777e 100644 --- a/api/v3/ActivityType.php +++ b/api/v3/ActivityType.php @@ -91,7 +91,9 @@ function civicrm_api3_activity_type_create($params) { */ function _civicrm_api3_activity_type_create_spec(&$params) { $params['label']['api.required'] = 1; + $params['label']['title'] = 'Label'; $params['weight']['api.required'] = 1; + $params['weight']['title'] = 'Weight'; } /** diff --git a/api/v3/CustomValue.php b/api/v3/CustomValue.php index 1ae1f8e14f..a2d46c8ff4 100644 --- a/api/v3/CustomValue.php +++ b/api/v3/CustomValue.php @@ -121,6 +121,7 @@ function civicrm_api3_custom_value_create($params) { */ function _civicrm_api3_custom_value_create_spec(&$params) { $params['entity_id']['api.required'] = 1; + $params['entity_id']['title'] = 'Entity ID'; } /** diff --git a/api/v3/Mailing.php b/api/v3/Mailing.php index 116a4b021c..c24c6d6a8e 100644 --- a/api/v3/Mailing.php +++ b/api/v3/Mailing.php @@ -66,6 +66,7 @@ function _civicrm_api3_mailing_create_spec(&$params) { // making required for simplicity $params['created_id']['api.required'] = 1; $params['api.mailing_job.create']['api.default'] = 1; + $params['api.mailing_job.create']['title'] = 'Schedule Mailing?'; } /** diff --git a/api/v3/Setting.php b/api/v3/Setting.php index 9f71c5ab36..77a39489ad 100644 --- a/api/v3/Setting.php +++ b/api/v3/Setting.php @@ -44,6 +44,7 @@ function civicrm_api3_setting_getfields($params) { 'type' => CRM_Utils_Type::T_STRING), 'group' => array('title' => 'name of setting field', 'api.required' => 0, + 'title' => 'Setting Group', 'description' => 'Settings Group. This is required if the setting is not stored in config', 'type' => CRM_Utils_Type::T_STRING) );