LOS ANGELES, California (CNN) -- A court has ordered pop singer Britney Spears to give up custody of her children effective Wednesday at noon. Kevin Federline and Britney Spears, here during happier times, have two children. Spears' former husband, Kevin Federline, is to retain custody of their two sons "until further order of the court," according to a ruling by Superior Court Judge Scott Gordon. It was not clear what led to Monday's decision awarding Federline full custody. A transcript of the court proceedings was ordered sealed. Last month, a judge ordered Spears, 25, to submit to random drug tests after finding she engaged in "habitual, frequent, and continuous use of controlled substances and alcohol."
@highlight
Kevin Federline to take custody of children effective Wednesday noon
@highlight
Federline and Britney Spears have two children, ages 2 and 1
@highlight
Pair were divorced in July
That order, also by @placeholder, provided no details and did not name any drugs.
@placeholder also told both parents to avoid alcohol or "other non-prescription controlled substances" 12 hours before taking custody of the children.