No action shall be commenced to test the validity of any election held by any municipality of this state for the purpose of issuing bonds or levying taxes, nor to attack the issuance of bonds pursuant to such election, unless commenced within six months from the date of declaring the result of said election.
Ala. Code § 6-2-40 (1975)