One can even get sole custody if the spouse has mental problems.
http://www.temeculadivorce.com/faq.html
How can I get sole custody of my children?
Normally a court will order the parties to share custody unless one parent neglects the children or has issues, such as drug use, mental problems, or a history of domestic violence.