From a6aeb992df8c0b74cd389c8a1f4475b80d24b44b Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Mon, 25 Aug 2014 12:28:23 +1200 Subject: [PATCH] CRM-15168 as mailing api are non-standard we need to code the titles into the api - can't leverage schema --- api/v3/MailingEventConfirm.php | 3 +++ api/v3/MailingEventResubscribe.php | 3 +++ api/v3/MailingEventSubscribe.php | 2 ++ api/v3/MailingEventUnsubscribe.php | 3 +++ 4 files changed, 11 insertions(+) diff --git a/api/v3/MailingEventConfirm.php b/api/v3/MailingEventConfirm.php index c1b64a4d7c..2c05777910 100644 --- a/api/v3/MailingEventConfirm.php +++ b/api/v3/MailingEventConfirm.php @@ -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'; } diff --git a/api/v3/MailingEventResubscribe.php b/api/v3/MailingEventResubscribe.php index 530f78294d..8410c3c637 100644 --- a/api/v3/MailingEventResubscribe.php +++ b/api/v3/MailingEventResubscribe.php @@ -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'; } diff --git a/api/v3/MailingEventSubscribe.php b/api/v3/MailingEventSubscribe.php index b312d7820d..57d2661a09 100644 --- a/api/v3/MailingEventSubscribe.php +++ b/api/v3/MailingEventSubscribe.php @@ -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'; } diff --git a/api/v3/MailingEventUnsubscribe.php b/api/v3/MailingEventUnsubscribe.php index cab953ebda..d6cd367482 100644 --- a/api/v3/MailingEventUnsubscribe.php +++ b/api/v3/MailingEventUnsubscribe.php @@ -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'; } -- 2.25.1