You are here

function comment_og_access in Comment OG 6

Same name and namespace in other branches
  1. 7 comment_og.module \comment_og_access()

Determine if comments may be posted by the active user to the given group.

Parameters

$og_node: The group node (with a nodetype of `og') to which the user's comment post access is being tested.

Return value

TRUE if the active user may post a comment within the given group. FALSE otherwise.

2 calls to comment_og_access()
comment_og_form_alter in ./comment_og.module
comment_og_link_alter in ./comment_og.module
Implementation of hook_link_alter(). Removes comment link for non-members

File

./comment_og.module, line 189

Code

function comment_og_access($og_node) {
  return og_is_group_member($og_node) || _comment_og_allow_nonmember_access($og_node->nid);
}