function panels_group_from_node_context in Organic groups 5.3
Same name and namespace in other branches
- 5.8 includes/grouprelationships.inc \panels_group_from_node_context()
- 5 includes/grouprelationships.inc \panels_group_from_node_context()
- 5.7 includes/grouprelationships.inc \panels_group_from_node_context()
- 6 includes/og.panelsrelationships.inc \panels_group_from_node_context()
Return a new context based on an existing context
1 string reference to 'panels_group_from_node_context'
File
- includes/
grouprelationships.inc, line 11 - includes/grouprelationships.inc
Code
function panels_group_from_node_context($context = NULL, $conf) {
// If unset it wants a generic, unfilled context, which is just NULL
if (empty($context->data)) {
return panels_context_create_empty('group', NULL);
}
if ($group = og_get_group_context()) {
return panels_context_create('group', $group);
}
}