CRM-15168 as mailing api are non-standard we need to code the titles into the api...
authorEileen McNaughton <eileen@fuzion.co.nz>
Mon, 25 Aug 2014 00:28:23 +0000 (12:28 +1200)
committerEileen McNaughton <eileen@fuzion.co.nz>
Mon, 25 Aug 2014 00:28:23 +0000 (12:28 +1200)
api/v3/MailingEventConfirm.php
api/v3/MailingEventResubscribe.php
api/v3/MailingEventSubscribe.php
api/v3/MailingEventUnsubscribe.php

index c1b64a4d7c82d9133306a469b5f61e2be0d6c1f2..2c05777910627c1e6a2cc449e7e6de8e8562781f 100644 (file)
@@ -70,7 +70,10 @@ function civicrm_api3_mailing_event_confirm_create($params) {
  */
 function _civicrm_api3_mailing_event_confirm_create_spec(&$params) {
   $params['contact_id']['api.required'] = 1;
+  $params['contact_id']['title'] = 'Contact ID';
   $params['subscribe_id']['api.required'] = 1;
+  $params['subscribe_id']['title'] = 'Subscribe Event ID';
   $params['hash']['api.required'] = 1;
+  $params['hash']['title'] = 'Hash';
 }
 
index 530f78294d9f77cd268fb5e797b04c699922abe7..8410c3c63700917a3e1536f5e3525a4656928688 100644 (file)
@@ -74,7 +74,10 @@ function civicrm_api3_mailing_event_resubscribe_create($params) {
  */
 function _civicrm_api3_mailing_event_resubscribe_create_spec(&$params) {
   $params['event_queue_id']['api.required'] = 1;
+  $params['event_queue_id']['title'] = 'Event Queue ID';
   $params['job_id']['api.required'] = 1;
+  $params['job_id']['title'] = 'Job ID';
   $params['hash']['api.required'] = 1;
+  $params['hash']['title'] = 'Hash';
 }
 
index b312d7820d7df293d47e574b9bbe7618ac08a92d..57d2661a09669c2a4544d761f3e65a3e40fb7415 100644 (file)
@@ -86,6 +86,8 @@ function civicrm_api3_mailing_event_subscribe_create($params) {
  */
 function _civicrm_api3_mailing_event_subscribe_create_spec(&$params) {
   $params['email']['api.required'] = 1;
+  $params['email']['title'] = 'Unsubscribe Email';
   $params['group_id']['api.required'] = 1;
+  $params['group_id']['title'] = 'Unsubscribe From Group';
 }
 
index cab953ebda9bf2d7c234e111636cab39825c2ce7..d6cd367482a2006058704163f5bd1bbd19a9c2b4 100644 (file)
@@ -81,7 +81,10 @@ function civicrm_api3_mailing_event_unsubscribe_create($params) {
  */
 function _civicrm_api3_mailing_event_unsubscribe_create_spec(&$params) {
   $params['job_id']['api.required'] = 1;
+  $params['job_id']['title'] = 'Mailing Job ID';
   $params['hash']['api.required'] = 1;
+  $params['hash']['title'] = 'Mailing Hash';
   $params['event_queue_id']['api.required'] = 1;
+  $params['event_queue_id']['title'] = 'Mailing Queue ID';
 }