Application of Islamic law by country upon "authoritative Islamic sources and authentic fatwa". Book 2 of the Islamic Penal Code of Iran is entirely devoted to hudud punishments. Iranian application of sharia has been seen by scholars as highly flexible and directly contradicting traditional interpretations of the sharia. Article 1 of Civil Code identifies Islamic law as a main source of legislation. The 1958 Code, made polygamy extremely difficult, granted child custody to the mother in case of divorce, prohibited repudiation and marriage under the age of 16. In 1995, Iraq introduced Sharia punishment for certain types of criminal offenses. Iraq's legal system is based on
Ban on sharia law restrict judges from consulting Shariah, or foreign and religious laws more generally". As of 2013, all but 16 states have considered such a law. In November 2010, voters in Oklahoma approved a ballot measure to amend the state constitution to ban sharia from state courts. The law was then updated to include all foreign or religious laws. The law was challenged by an official of the Council on American-Islamic Relations. In November 2010 a federal judge ruled the law to be unconstitutional and blocked the state from putting it into effect. The court found the ban had the potential to