You are here

function comment_perm_comment in Comment Permissions 5

Same name and namespace in other branches
  1. 6 comment_perm.module \comment_perm_comment()
  2. 7 comment_perm.module \comment_perm_comment()

Implementation of hook_comment().

File

./comment_perm.module, line 97

Code

function comment_perm_comment($a1, $op) {
  switch ($op) {
    case 'validate':
      $nid = $a1['nid'];
      if (!comment_perm_access($nid)) {
        form_set_error('', _comment_perm_access_denied_message());
      }
      break;
  }
}