Oak Grove High School senior Wade Chapman says he was punished after criticizing his school's plan to avert a walkout last Wednesday to protest lawmakers' lack of action to protect students at school. That punishment was two days of in-school suspension, which he served on Thursday and Friday of last week.

Chapman said Oak Grove Principal Pam Dennis asked him, through Chapman's marketing teacher, to take down the post, made on Twitter Tuesday evening. Chapman did not take it down, believing it to be protected speech under the First Amendment.

[UPDATED 3/20/18 12:15 p.m. to add five paragraphs inadvertently omitted] Chapman said the school's plan for a "Walk Up Not Out" program didn't go far enough to address safety issues at the school.

"I wanted a forum where administrators had to hear what Oak Grove students had to say, because we have a lot to say", Chapman said. "Not necessarily just about guns, but the overall safety of us in school and how they can do a better job of protecting us."

Jefferson County district officials, in a written statement to AL.com, said Chapman wasn't punished for the criticism levied in the social media post.

"We respect the right for our students to responsibly express their thoughts and beliefs," Superintendent Craig Pouncey said. "The student was disciplined for causing a disruption to the learning environment and that is where we stand." They did not elaborate further, citing federal privacy reasons.

Chapman's attorney, Kristin Waters Sullivan, said it appears district officials are trying to claim that another of Chapman's posts is the reason for his punishment.

In a different post, Chapman said he criticized Dennis' reasoning for not allowing the walkout, saying that Dennis told teachers that students shouldn't go outside because it was not safe and that someone might shoot at them while they were outside.

Chapman deleted that tweet on Wednesday, saying it may have been "poorly worded," but accurately represented what Dennis said.

In a written statement to AL.com, Chapman's attorney, Kristin Waters Sullivan said Chapman was only repeating what the principal said, and the post "wasn't any sort of specific threat by any stretch."

Chapman said Dennis called him to her office three times on Wednesday, levying the punishment, two days of in-school suspension, just before school was dismissed.

Chapman said the online record of his punishment cites "willful disobedience," a Class II offense, as the reason he was punished. The Jefferson County Student Code of Conduct defines willful disobedience as:

"Recurring minor violations of the Code of Student Conduct as determined by the school administrator which disrupts the orderly conduct of a school function. These violations include, but are not limited to, the following:

A. Multiple Class I offenses

B. Any other violation which the principal may reasonably deem falls in this category"

The #ENOUGH: National School Walkout was held March 14 at 10 a.m. in each time zone to protest the lack of action from lawmakers in the wake of the 14 students and three staff members killed on Feb. 14 at Marjory Stoneman Douglas High School in Parkland, Fla.

School districts across Alabama handled activities related to the walkout in different ways.

Students in Jefferson County schools were told if they participated in the walkout they would be in violation of the code of conduct and punished accordingly.

Shelby County administrators said students wouldn't be punished, but encouraged students to work with principals to find alternatives to the walkout.

Two Alabama school districts, Birmingham City and Macon County Schools, allowed students to walk out of class.

Students across the country walked out of class for 17 minutes to remember the 17 victims, with some schools adding one additional minute to honor Huffman High senior Courtlin Arrington, killed on March 7, in a shooting on her school campus.

Social media posts showed students across the state as they walked out of classes or gathered for a memorial.

Huffman High Student Walkout WATCH: Students at Birmingham's Huffman High are walking out of school to support bringing an end to gun violence: Posted by al.com on Wednesday, March 14, 2018

Chapman, who shared his punishment on social media, apologized on Facebook for what he called "taking the attention of the most important topic of the day, the 17 victims in Parkland, FL."

Many of the responses to Chapman's posts on social media about his punishment urged him to contact the ACLU.

A spokesperson for the ACLU of Alabama said students in Alabama schools have contacted them about issues related to the walkout but couldn't elaborate.

Sullivan said they will continue to work to clear Chapman's permanent record and have been in contact with Jefferson County's board attorneys.

Chapman, who until Wednesday was an administrator of the school's official Twitter account, said he is a strong supporter of his school, but also of a student's First Amendment rights.

Chapman said he has always been heavily involved in activities at the high school, and served as drum major this past year.

He said he worries people will think he doesn't support the school. "The history of what I've done for that school is solid," Chapman said.

"I love Oak Grove. Just because I don't agree with something the administration has done doesn't mean I hate [the school]."

NOW: Students are showing signs, linking arms and wearing black and orange at the Alabama School of Mathematics and Sciences. They are joining thousands across the country participating in a national walk out to protest gun violence. @mynbc15 #Nationalwalkout #WalkoutWednesday pic.twitter.com/sDI5cc7XCw — Nicole Fierro (@FierroNicole) March 14, 2018

This post was updated at 10:15 a.m. on 3/20/18 to include the full name of Chapman's attorney.