Fair play to the head for doing this. Telling kids that there are certain expectations in the world of employment is no bad thing.
My school have also just banned mobiles, mp3 and headphones - complete zero tolerance. About time to be honest as the kids just take the piss with them.