§8-12-13. Building regulation; general and special codes; state building code.
(a) The governing body of every municipality shall have plenary power and authority by ordinance or a code of ordinances to:

(1) Regulate the erection, construction, repair or alteration of structures of every kind within the corporate limits of the municipality, prohibit, within specified territorial limits, the erection, construction, repair or alteration of structures of wood or other combustible material, and regulate excavations upon private property;

(2) Regulate electric wiring by prescribing minimum specifications to be followed in the installation, alteration or repair thereof; and

(3) Regulate plumbing by prescribing the minimum specifications to be followed in the installation, alteration or repair of plumbing, including equipment, water and sewer pipe, traps, drains, cesspools and septic tanks.

(b) Notwithstanding the provisions of subsection (a), all existing municipal building codes are void one year after the promulgation of a state building code by the state fire commission as provided in chapter twenty-nine, article three, section five-b of this code.

Upon the voidance of the municipality's existing building code, if the municipality votes to adopt a building code, it must be the state building code promulgated pursuant to chapter twenty-nine, article three, section five-b of this code.

(c) The governing body of every municipality shall have plenary power and authority by ordinance or a code of ordinances to adopt such state building code promulgated by the state fire commission.