How to edit comment reply link for specific content type in Drupal 7 Is there a way I can programmatically edit comment reply links for a specific content type in Drupal 7?

So I need to check for the content type before changing the links:

&lt;?php
if ($node-&gt;type == 'book') {
  // change comment reply links here
}
?&gt;


Does anyone know how this can be achieved? Is there some sort of hook I need to implement?
You can try to use preprocess comment function:


function MYTHEME_preprocess_comment(&$vars) {
  unset($vars['content']['links']['comment']['#links']['comment-reply']);
}


Also check https://www.drupal.org/node/319298