You are here

grouprelationships.inc in Organic groups 5.7

includes/grouprelationships.inc

Plugin to provide an relationship handler for nodes posted to a group.

File

includes/grouprelationships.inc
View source
<?php

/**
 * @file includes/grouprelationships.inc
 *
 * Plugin to provide an relationship handler for nodes posted to a group.
 */

/**
 * Return a new context based on an existing context
 */
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);
  }
}

Functions

Namesort descending Description
panels_group_from_node_context Return a new context based on an existing context