You are here

function flatcomments_comment_view_alter in Flatcomments 7.2

Implementation of hook_comment_view_alter().

File

./flatcomments.module, line 43
Make comments replies to the node, regardless of the reply link used.

Code

function flatcomments_comment_view_alter(&$build) {
  $show_reply_link = variable_get('flatcomments_remove_reply_link_' . $build['#node']->type, array());
  if (isset($build['links']['comment']['#links']['comment-reply']) && !empty($show_reply_link)) {
    unset($build['links']['comment']['#links']['comment-reply']);
  }
}