| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
* @throws API_Exception
* @return array
* api result array
- * {@getfields mailing_event_subscribe_create}
+ * {@getfields mailing_event_subscribe_create}
*/
function civicrm_api3_mailing_event_subscribe_create($params) {
$email = $params['email'];
$group = new CRM_Contact_DAO_Group();
$group->is_active = 1;
- $group->id = (int)$group_id;
+ $group->id = (int) $group_id;
if (!$group->find(TRUE)) {
throw new API_Exception('Invalid Group id');
}
if ($subscribe !== NULL) {
/* Ask the contact for confirmation */
-
$subscribe->send_confirm_request($email);
$values = array();