function herbis_parse($roi_pid) { $apiary_project_herbis_dir = variable_get('apiary_project_herbis_dir', '/var/www/drupal/modules/apiary_project/herbis'); $apiary_project_herbis_url = variable_get('apiary_project_herbis_url', 'http://txcdk3g.unt.edu:8080/HERBIS'); $returnJSON = ""; $roi_obj = new roiHandler($roi_pid); $herbis_result = $roi_obj->get_herbis($apiary_project_herbis_dir, $apiary_project_herbis_url); //echo $herbis_result; $returnJSON['herbis_result'] = $herbis_result; echo json_encode($returnJSON); }