Unwed mothers are outcast in Islamic society. This article is written by Mariane Pearl describing the horror of the problem and how Morocco is working to solve it.
In 2004 there was a new Moroccan Family Law passed that is also addressing the problem, but nothing is solved overnight. You have to institute small steps that can be repeated over and over to a solution.
This is a detailed description of the new Family Law Act of 2004
kudos to The Morocco Report that addressed this issue on a 10 May 2007 posting