Britney Spears' ex-husband Kevin Federline will get custody of her children.
Superior Court Judge Scott M. Gordon ruled that Federline will take custody of Sean Preston, 2, and Jayden James, 1, beginning Wednesday "until further order of the court."
Earlier this month, Gordon said Spears engaged in "habitual, frequent and continuous use of controlled substances and alcohol" and ordered her to undergo random drug and alcohol testing twice a week as part of her ongoing custody dispute with Federline.
Spears also was previously ordered to meet weekly with a "parenting coach" who was to observe and report back to the court about her parenting skills. Both Spears and Federline must complete the court's "Parenting Without Conflict" class.
Spears, 25, and Federline, 29, were wed in October 2004. She filed for divorce last November and it became official in July. The two have joint custody of their sons, but Federline is seeking a greater share of custody.