function flatcomments_link_alter in Flatcomments 6.2
Implementation of hook_link_alter().
File
- ./
flatcomments.module, line 96 - Make comments replies to the node, regardless of the reply link used.
Code
function flatcomments_link_alter(&$links, $node, $comment = NULL) {
if (isset($links['comment_reply'])) {
$remove = variable_get('flatcomments_remove_reply_link_' . $node->type, array());
if (!empty($remove)) {
// Remove the reply link.
unset($links['comment_reply']);
}
}
}