2. The board of education or the trustees, as defined in section two of this chapter, of every school district within the state, however created, and every board of cooperative educational services and county vocational extension board, shall adopt and amend, as appropriate, a code of conduct for the maintenance of order on school property, including a school function, which shall govern the conduct of students, teachers and other school personnel as well as visitors and shall provide for the enforcement thereof. Such policy may be adopted by the school board or trustees only after at least one public hearing that provides for the participation of school personnel, parents, students and any other interested parties. Such code of conduct shall include, at a minimum:
e. provisions for detention, suspension and removal from the classroom of students, consistent with section thirty-two hundred fourteen of this chapter and other applicable federal, state and local laws including provisions for the school authorities to establish policies and procedures to ensure the provision of continued educational programming and activities for students removed from the classroom, placed in detention, or suspended from school.