Criminal Law Questions? Ask a Criminal Lawyer.
Was he incarcerated when he tested positive?
Well here is what I suggest if you can get him into an inpatient rehab that might help. Try to secure a bed space for him and get a confirmation letter showing it is ready and available. You can present that to the judge and then it may be possible the judge would give him another chance as long as he remained in the rehab and was successful.
If you have further questions, you may post them here and i will continue to assist. Otherwise, even if you have a subscription with JA please remember to ACCEPT my answer as that is the only way I can get credit for my time and information in this matter. Thank you and good luck