function flatcomments_preprocess_comment in Flatcomments 6
Process variables for comment.tpl.php.
See also
File
- ./
flatcomments.module, line 100 - Make comments replies to the node, regardless of the reply link used.
Code
function flatcomments_preprocess_comment(&$vars) {
// Removing reply link if requested.
// hook_link_alter does not run for comment threads.
// Hopefully will be fixed in D7. http://drupal.org/node/374463
if (in_array('reply', variable_get('flatcomments_remove_reply_link_' . $vars['node']->type, array()))) {
$vars['links'] = preg_replace('(\\<li.*\\>' . t('reply') . '\\</a\\>\\</li\\>)', '', $vars['links']);
}
}