All cities and towns of this state shall have the power to exercise police jurisdiction over all lands purchased or acquired by the city or town for the purpose of being used or occupied as a hospital, quarantine station, poorhouse, pesthouse, workhouse or house of correction, schoolhouse, sanitary or storm water sewers, rights-of-way, cemeteries and parks, and the laws and ordinances of the cities and towns shall apply to and extend over all the lands so used or occupied and the inhabitants thereof.
Ala. Code § 11-47-22 (1975)