Pupil hospitalised after taking drugs at school