}
/**
- * @deprecated - this is part of the import parser not the API & needs to be moved on out
- *
* @param array $params
* @param $onDuplicate
*
* @return array|bool
* <type>
+ * @throws \CiviCRM_API3_Exception
+ * @deprecated - this is part of the import parser not the API & needs to be
+ * moved on out
+ *
*/
protected function deprecated_create_participant_formatted($params, $onDuplicate) {
if ($onDuplicate != CRM_Import_Parser::DUPLICATE_NOCHECK) {
return $error;
}
}
- return civicrm_api3_participant_create($params);
+ return civicrm_api3('Participant', 'create', $params);
}
}