function og_is_node_group_content_check in Organic groups 7.2
Same name and namespace in other branches
- 7 plugins/access/og_is_node_group_content.inc \og_is_node_group_content_check()
Check for access.
1 string reference to 'og_is_node_group_content_check'
- og_is_node_group_content.inc in plugins/
access/ og_is_node_group_content.inc
File
- plugins/
access/ og_is_node_group_content.inc, line 20
Code
function og_is_node_group_content_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->type)) {
return FALSE;
}
return og_is_group_content_type('node', $context->data->type);
}