Publications of cartoons of the Prophet Muhammad in Danish newspapers a few years ago sparked violent protests in majority-Muslim countries .