How to remove the 'Reply' link in comments? I'm currently using the following line of code in my comment.tpl.php file:

&lt;?php print render($content['links']) ?&gt;


This also prints the 'Reply' link, but I'd like to remove that one. How can I do that?



Note: I'm able to hide the 'Reply' link with CSS, but that's not a very nice solution.
If you wanted to remove all links, you could do it in a template file like this:

hide($content['links']);
print render($content);


But I don't know how to hide just the comment reply link this way. Based on a short article here, it looks like you can unset the reply link with a preprocess function in template.php like this:

function themename_preprocess_comment(&amp;$variables) {
  unset($variables['content']['links']['comment']['#links']['comment-reply']);
}