A municipality located in a county having fewer than 3,000,000 inhabitants or a county shall not enact an ordinance to prohibit the orderly keeping of carrier , racing, hobby, or show pigeons, except that (i) any municipality located in a county having 3,000,000 or more inhabitants may enact an ordinance to prohibit or regulate the orderly keeping of carrier, racing, hobby, or show pigeons and (ii) any municipality located in a county having fewer than 3,000,000 inhabitants may enact an ordinance to regulate, but not prohibit, the orderly keeping of carrier, racing, hobby, or show pigeons .
510 ILCS 45/7