Application of Islamic law by country punished by imprisonment of up to six months. It has a civil law system. The Family Code is mainly derived from Islamic law and regulates personal status matters such as marriage, divorce, child custody and inheritance. Sharia does not apply to criminal law. Article 2 of Egypt's 2014 Constitution declares the principles of Islamic sharia to be the main source of legislation. Egypt's law and enforcement system are in flux since its 2011 Revolution; however, the declaration of Sharia's primacy in Article 2 is a potential ground for unconstitutionality of any secular laws in Egyptian legal code. Sharia courts and
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