You are here

function comment_perm_link_alter in Comment Permissions 5

Same name and namespace in other branches
  1. 6 comment_perm.module \comment_perm_link_alter()

Implementation of hook_link_alter().

File

./comment_perm.module, line 149

Code

function comment_perm_link_alter(&$node, &$links) {
  if (!comment_perm_access($node)) {
    unset($links['comment_add']);
  }
}