X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FMailingEventSubscribe.php;h=57d2661a09669c2a4544d761f3e65a3e40fb7415;hb=e6041ec2f5ecc26fa120e78f40c640b636ce8618;hp=1df072a408e13a9ad970ed12e483258912aa6f21;hpb=6643a63b47c9607cdc5f14a739cf7c7cfe55d726;p=civicrm-core.git diff --git a/api/v3/MailingEventSubscribe.php b/api/v3/MailingEventSubscribe.php index 1df072a408..57d2661a09 100644 --- a/api/v3/MailingEventSubscribe.php +++ b/api/v3/MailingEventSubscribe.php @@ -40,9 +40,10 @@ /** * Subscribe from mailing group * - * @param array $params Associative array of property + * @param array $params Associative array of property * name/value pairs to insert in new 'survey' * + * @throws API_Exception * @return array api result array * {@getfields mailing_event_subscribe_create} * @access public @@ -85,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'; }