function comment_og_link_alter in Comment OG 5
Same name and namespace in other branches
- 6 comment_og.module \comment_og_link_alter()
Implementation of hook_link_alter(). Removes comment link for non-members
File
- ./
comment_og.module, line 6
Code
function comment_og_link_alter(&$links, $node) {
if ($node->comment) {
if (isset($node->og_groups)) {
if (!og_is_group_member(og_get_group_context())) {
unset($links['comment_add']);
}
}
}
}