X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FMailingEventConfirm.php;h=c36deae8bd01ca1e2558ab94d184fc624c18b906;hb=cc7968d8a8cc3b6008257018642334d5424be8d9;hp=66d354f9235b80aff765714590b9fe307c80d83d;hpb=5d867d83ac582e4c45417c82610d569100d6da43;p=civicrm-core.git diff --git a/api/v3/MailingEventConfirm.php b/api/v3/MailingEventConfirm.php index 66d354f923..c36deae8bd 100644 --- a/api/v3/MailingEventConfirm.php +++ b/api/v3/MailingEventConfirm.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.6 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2014 | + | Copyright CiviCRM LLC (c) 2004-2015 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -65,10 +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']['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'; + $params['contact_id'] = array( + 'api.required' => 1, + 'title' => 'Contact ID', + 'type' => CRM_Utils_Type::T_INT, + ); + $params['subscribe_id'] = array( + 'api.required' => 1, + 'title' => 'Subscribe Event ID', + 'type' => CRM_Utils_Type::T_INT, + ); + $params['hash'] = array( + 'api.required' => 1, + 'title' => 'Hash', + 'type' => CRM_Utils_Type::T_STRING, + ); }