(a)
A court may suspend or order that the department revoke in which case the department shall revoke the privilege of any person to operate a motor vehicle upon conviction of any offense related to controlled substances as defined in Division 10 (commencing with Section 11000) of the Health and Safety Code when the use of a motor vehicle was involved in, or incidental to, the commission of the offense.
(b)
A court shall order that the department revoke and the department shall revoke the privilege of any person to operate a motor vehicle upon conviction of a violation of Section 11350, 11351, 11352, 11353, 11357, 11359, 11360, or 11361 of the Health and Safety Code when a motor vehicle was involved in, or incidental to, the commission of such offense.
(c)
The period of time for suspension or the period after revocation during which the person may not apply for a license shall be determined by the court, but in no event shall such period exceed three years from the date of conviction.