X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FMailingEventConfirm.php;h=12ccad5a02dc3e3f083446d50a80cab3ad499a52;hb=75d91d09d336d6fecd9bbfb8d30487dc21b01a7f;hp=93d6ed03a85f521c5f508bcec7c0e9bc1c7ab9e8;hpb=d880d1db343ce51a575d446d2748e3e1e5468277;p=civicrm-core.git diff --git a/api/v3/MailingEventConfirm.php b/api/v3/MailingEventConfirm.php index 93d6ed03a8..12ccad5a02 100644 --- a/api/v3/MailingEventConfirm.php +++ b/api/v3/MailingEventConfirm.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 5 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2017 | + | Copyright CiviCRM LLC (c) 2004-2019 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -65,19 +65,19 @@ function civicrm_api3_mailing_event_confirm_create($params) { * Array of parameters determined by getfields. */ function _civicrm_api3_mailing_event_confirm_create_spec(&$params) { - $params['contact_id'] = array( + $params['contact_id'] = [ 'api.required' => 1, 'title' => 'Contact ID', 'type' => CRM_Utils_Type::T_INT, - ); - $params['subscribe_id'] = array( + ]; + $params['subscribe_id'] = [ 'api.required' => 1, 'title' => 'Subscribe Event ID', 'type' => CRM_Utils_Type::T_INT, - ); - $params['hash'] = array( + ]; + $params['hash'] = [ 'api.required' => 1, 'title' => 'Hash', 'type' => CRM_Utils_Type::T_STRING, - ); + ]; }