/** * This api checks and updates the status of all survey respondents. * * @param array $params * (reference ) input parameters. * * @return bool * true if success, else false */ function civicrm_api3_job_process_respondent($params) { $result = CRM_Campaign_BAO_Survey::releaseRespondent($params); if ($result['is_error'] == 0) { return civicrm_api3_create_success(); } else { return civicrm_api3_create_error($result['messages']); } }