07/27/2011 01:44 pm ET | Updated Sep 26, 2011

Jesse James: Custody Battle Comes To An End

Jesse James isn't having the best week -- he ended his engagement to Kat Von D on Tuesday-- but there is one thing going for him these days. The motorcycle man and Sandra Bullock's ex was awarded sole custody of his 7-year-old daughter, Sunny, after a long and drawn-out court battle.

According to PEOPLE, James and his porn star ex-wife Janine Lindemulder have spent a long time hashing out a custody arrangement for their daughter and the court ruled in favor of James on Monday.

Lindemulder, who resides in California, will be permitted to have monitored visits with her daughter. If she decides to relocate to Texas, where James and Sunny reside, she'll be required to go to an inpatient rehab facility.

James' favorable custody arrangement has been years in the making.

In the spring of 2010, Lindemulder petitioned the court for custody of Sunny, and used James' divorce from Bullock and affair with Michelle "Bombshell" McGee as grounds for a custody change. Sunny had previously been living with James and Bullock in Texas after they won a custody battle against Lindemulder in 2009.

James and Lindemulder went to court last summer, and the judge awarded joint legal custody to both parents, but gave James physical custody.

Now it looks like Sunny will be staying in put in Texas with her dad, but no new stepmom in sight.