Jae C. Hong, Associated Press
Britney Spears

A Los Angeles court commissioner gave sole physical and legal custody of Britney Spears' two little boys Friday to ex-husband Kevin Federline and suspended the troubled pop star's visitation rights.

Spears was hauled away from her home to a hospital by paramedics a day before, after police had to intervene when she refused to return the children to Federline after a court-monitored visit.

Commissioner Scott Gordon ordered another hearing to be held Jan. 14.

Federline had previously been awarded temporary custody of 2-year-old Sean Preston and 1-year-old Jayden James because Spears has defied court orders, resulting in limitations on her visitation.

The 26-year-old pop star remained hospitalized Friday.

Her latest troubles began around 8 p.m. Thursday when officers were called to her home to help resolve a dispute over her refusal to turn the children over to Federline. Early police reports said officers thought Spears might have been under the influence of some substance, but officer Ana Aguirre said there was no evidence of that.