Colin Gray gifted the rifle, ammo, and other gun accessories to his son, who had photos of another school shooter on his bedroom walls, a court heard.

Editor's note: as of Thursday afternoon, Colin Gray has been sentenced to 15 years in prison.

This story has been corrected to show the school is called Apalachee High School, not Appalachee.

This article originally appeared on HuffPost.