MCALLEN, Texas (CBSDFW.COM/AP) – A former South Texas police chief and law enforcement officer of nearly two decades was sentenced to 20 years in federal prison for drug trafficking.

A U.S. District Judge sentenced 45-year-old Geovani V. Hernandez on Thursday.

READ MORE: Texas State Representative Matt Krause Joins Race Against Ken Paxton For Attorney General

Geovani Hernandez (credit:GeovaniHernandezForSheriff.com)

Hernandez, of McAllen, was convicted of numerous drug charges in March, including attempting to aid and abet possession with intent to distribute.

READ MORE: 2 Brothers Who Were Eagle Mountain-Saginaw ISD Students Killed In Head-On Crash In Far Northwest Fort Worth

Hernandez was a Progreso police sergeant when federal agents arrested him in 2017. A criminal complaint reveals that Hernandez accepted cash from a federal informant to provide security for a drug cartel associate and a shipment of cocaine.

U.S. District Judge Randy Crane noted before the sentencing that Hernandez, who was briefly the police chief in La Joya, could have reduced his prison time by seven years if he had chosen to plead guilty.

MORE NEWS: Engineers At Dallas Fort Worth Int'l Airport Taking New Approach To Building Passenger Gates

(© Copyright 2019 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.)