Southern California -- this just in

A Beverly Hills attorney who tried to smuggle heroin into a secure area of the downtown L.A. criminal courts building pleaded no contest Monday to a single count of taking drugs into jail.

Michael H. Inman was originally charged with four criminal counts of drug possession and sales in connection with his June 2010 arrest.

Under the plea deal entered before Los Angeles Superior Court Judge Michael Abzug, three additional felony counts were dismissed, including possession of a controlled substance in a jail, possession for sale of a controlled substance and sale or transportation of a controlled substance.

Inman was sentenced to four months in county jail and three years formal probation and was ordered to submit paperwork to the state bar to be placed on inactive status.

Inman was at the courthouse last June to visit two defendants he was representing in a case regarding burglary and receiving stolen property.

The 48-year-old attorney was caught with about 14.25 grams of black tar heroin in a plastic bag and a trace amount of methamphetamine, prosecutors said. Sheriff's officials originally put the figure at 19 grams of heroin and two grams of methamphetamine.