You are here

function panels_group_from_node_context in Organic groups 6

Same name and namespace in other branches
  1. 5.8 includes/grouprelationships.inc \panels_group_from_node_context()
  2. 5 includes/grouprelationships.inc \panels_group_from_node_context()
  3. 5.3 includes/grouprelationships.inc \panels_group_from_node_context()
  4. 5.7 includes/grouprelationships.inc \panels_group_from_node_context()

Return a new context based on an existing context

1 string reference to 'panels_group_from_node_context'
og_panels_panels_relationships in modules/og_panels/og_panels.module

File

includes/og.panelsrelationships.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);
  }
}