X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FMailingEventResubscribe.php;h=9a958d72a4afeda5e85436b06aea862245585b85;hb=5d5d3b35f73c0d71e6dacb50dc35f92a047c78bc;hp=52963e655306c3f3e52b70e1b5ccc1f1e671d51a;hpb=cda772aae0c600de9033d3360dfde772a2a78f64;p=civicrm-core.git diff --git a/api/v3/MailingEventResubscribe.php b/api/v3/MailingEventResubscribe.php index 52963e6553..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. | | | @@ -68,10 +68,19 @@ function civicrm_api3_mailing_event_resubscribe_create($params) { * 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, + ); }