X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FMailingEventResubscribe.php;h=9a958d72a4afeda5e85436b06aea862245585b85;hb=3b7bf9514d92a68e9adb10ae1fe33f8d6ca3da7d;hp=d0db0ed9773a2be52446ff6a3941694b44009ada;hpb=17d83a01db1059f95af45e3bd8898e353e52c02c;p=civicrm-core.git diff --git a/api/v3/MailingEventResubscribe.php b/api/v3/MailingEventResubscribe.php index d0db0ed977..9a958d72a4 100644 --- a/api/v3/MailingEventResubscribe.php +++ b/api/v3/MailingEventResubscribe.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. | | | @@ -23,16 +23,13 @@ | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ -*/ + */ /** * * APIv3 functions for registering/processing mailing group events. * * @package CiviCRM_APIv3 - * @subpackage API_MailerGroup - * @copyright CiviCRM LLC (c) 2004-2014 - * $Id$ */ /** @@ -68,13 +65,22 @@ function civicrm_api3_mailing_event_resubscribe_create($params) { * The metadata is used for setting defaults, documentation & validation. * * @param array $params - * Array or parameters determined by getfields. + * Array of parameters determined by getfields. */ 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'; + $params['event_queue_id'] = array( + 'api.required' => 1, + 'title' => 'Event Queue ID', + 'type' => CRM_Utils_Type::T_INT, + ); + $params['job_id'] = array( + 'api.required' => 1, + 'title' => 'Job ID', + 'type' => CRM_Utils_Type::T_INT, + ); + $params['hash'] = array( + 'api.required' => 1, + 'title' => 'Hash', + 'type' => CRM_Utils_Type::T_STRING, + ); }