CRM-15168 add some titles inthe API layer
authorEileen McNaughton <eileen@fuzion.co.nz>
Mon, 25 Aug 2014 01:21:55 +0000 (13:21 +1200)
committerEileen McNaughton <eileen@fuzion.co.nz>
Mon, 25 Aug 2014 01:21:55 +0000 (13:21 +1200)
api/v3/ActivityType.php
api/v3/CustomValue.php
api/v3/Mailing.php
api/v3/Setting.php

index e70ce15d0d982c72e3afad00f07808925991c623..8a9328777e90b59af795bb6ad8e564b56cfeada8 100644 (file)
@@ -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';
 }
 
 /**
index 1ae1f8e14f2fa269eb0d7cd3d9e7309dab1c0a34..a2d46c8ff484f433c4786c69faa8733a04b62063 100644 (file)
@@ -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';
 }
 
 /**
index 116a4b021c9701ff74e554fe6d8adc905e494deb..c24c6d6a8e552ae0b5450974f9f220cebba5da23 100644 (file)
@@ -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?';
 }
 
 /**
index 9f71c5ab362f479b25a2acb220e1736857d7739c..77a39489ad2b69cb8ccbf4556cb8c4c96a23fdc5 100644 (file)
@@ -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)
       );