A Langley, B.C., teacher has been suspended over a homophobic prank he played on a Grade 11 student in class last year.

Daniel Mark Ogloff is a metal fabrication and machining teacher at Aldergrove Community Secondary School.

On Sept. 24, 2013, Ogloff wrote "I'm gay" on a piece of masking tape and affixed it to the back of the male student's jacket.

The teacher who has been suspended is a metal fabrication and machining teacher at Aldergrove Community Secondary in Langley, B.C. (CBC)

He allowed other students to take pictures and let the boy leave class unaware of the tape on his back, describing it to officials later as "horseplay."

Ogloff had earlier received a verbal warning from the school district over comments he made to Grade 7 students and he received another letter over comments to a Grade 12 student in class.

The school district suspended Ogloff from work without pay for 10 weeks last November for acting unprofessionally and disrespectfully. The B.C. Commissioner of Teacher Regulation has now suspended his teaching certificate for two weeks, from Sept. 22 to Oct. 5.