A school friend of mine got detention for a week after he was caught with a note that had some swear words in it. I was the one that passed it to him.. 
Oh no, did he place the blame on you, or did he just accept it and take the blame for you? 
He was a courageous one, and took the fall himself. Which actually made me feel even worse, but it taught me a lesson about integrity and honor.  
Aw, that just shows that he is a great friend. Maybe you can treat him to lunch for the rest of the week for taking the fall for you. I am sure he would really appreciate that :) 