/** * Process participant statuses. * * @param array $params * Input parameters. * * @return array * array of properties, if error an array with an error id and error message */ function civicrm_api3_job_process_participant($params) { $result = CRM_Event_BAO_ParticipantStatusType::process($params); if (!$result['is_error']) { return civicrm_api3_create_success(implode("\r\r", $result['messages'])); } else { return civicrm_api3_create_error('Error while processing participant statuses'); } }