Nick Ut / AP 1 / 12

Embattled R&B star Chris Brown was granted permission to leave his lockdown rehab center in Los Angeles for a few hours on Sunday to co-host a charity toy drive.

The singer is currently enrolled in a court-ordered 90-day anger management treatment program, but he honored a scheduled appearance at this weekend's Xmas Toy Drive, organized by bosses at the Brooklyn Projects skateboard firm and Brown's clothing company, Black Pyramid. The goal of the event was to encourage people to bring new, unwrapped gifts for underprivileged children.

"Thank you to all the fans who brought gifts for the kids today," Brown tweeted. "Have a wonderful holiday. You've made a merry Christmas for a young child!"

He also shared a picture of the many toys and attendees with the caption, "MY TEAM IS THE BEST!"

After the event, he returned to rehab.

Brown was ordered to seek help for his temper troubles last month after the judge overseeing his probation learned that he had been kicked out of another rehab center in Malibu for allegedly hurling a rock through his mother's car window.

The singer, who was placed on supervised release for his 2009 attack on then-girlfriend Rihanna, has since had his probation revoked after the judge ruled on Monday that a misdemeanor assault charge relating to a recent fight in Washington, D.C. violated the terms of his freedom. He has pleaded not guilty to the count.

The court official refused to have Brown taken into custody in favor of the star continuing his anger management treatment, although he must return for another progress update in February.


Celebrities who had trouble with the law in 2013

Biggest hookups and breakups of the year

The year in celebrity news