function og_is_node_group_check in Organic groups 7
Same name and namespace in other branches
- 7.2 plugins/access/og_is_node_group.inc \og_is_node_group_check()
Check for access.
1 string reference to 'og_is_node_group_check'
- og_is_node_group.inc in plugins/
access/ og_is_node_group.inc
File
- plugins/
access/ og_is_node_group.inc, line 20
Code
function og_is_node_group_check($conf, $context) {
// As far as I know there should always be a context at this point, but this
// is safe.
if (empty($context) || empty($context->data) || empty($context->data->nid)) {
return FALSE;
}
return og_get_group('node', $context->data->nid);
}