(1) No court shall hereafter enter any interlocutory or final order, decree, or judgment in any case involving the validity or constitutionality of any law relating to the distribution, apportionment, or allocation of any state excise or other taxes equally to the several counties in this state under such law, until it shall be made to appear of record in the case that the party to the cause seeking such order, decree, or judgment has duly served upon the chairperson of the board of county commissioners or the chairperson of the school board of each of the counties of this state or upon both such chairpersons of said boards, depending upon whether one or both of said boards has an interest in the subject matter, written notice of the pendency of the case and thereafter of all hearings of all applications or motions for such orders, decrees of judgments in such cases, at least 5 days before all hearings.
(2) Such notice shall state the time, place and date of each such hearing and adjournments thereof, and shall be accompanied by copy of the complaint and petition, motion or application for any such order, decree, or judgment and the exhibits thereto attached, if any; and upon such service such boards of such counties having an interest in the subject matter of the case shall forthwith be and become parties to the cause, and shall be by order of the court properly aligned as parties plaintiff or defendant.