Hide the Comment-Reply link in Drupal 7

Often times flat comments are preferred over nested ones, which makes Drupal’s default “reply to comment”-links pretty useless, if not confusing. To get rid of them just add this preprocess function to your theme’s template.php:

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

2 Comments

W9JTLNX2U ghbklasr www.yandex.ru August 18, 2021 Reply

9oWQEaas3K

41LESLZBEBK www.yandex.ru August 21, 2021 Reply

zD6BBxgH

Leave a Reply