value pairs. If $params is set * as null, all surveys will be returned * * @return array * API result Array of matching surveys * {@getfields survey_get} */ function civicrm_api3_survey_get($params) { return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params, TRUE, 'Survey'); } /** * delete an existing survey * * This method is used to delete any existing survey. id of the group * to be deleted is required field in $params array * * @param array $params * Array containing id of the group. * to be deleted * * @return array * api result array * {@getfields survey_delete} */ function civicrm_api3_survey_delete($params) { return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params); }