You are here

function og_panels_panels_relationships in Organic groups 5

Same name and namespace in other branches
  1. 5.8 og_panels.module \og_panels_panels_relationships()
  2. 5.3 og_panels.module \og_panels_panels_relationships()
  3. 5.7 og_panels.module \og_panels_panels_relationships()
  4. 6 modules/og_panels/og_panels.module \og_panels_panels_relationships()

File

./og_panels.module, line 619

Code

function og_panels_panels_relationships() {
  include_once './' . drupal_get_path('module', 'og_panels') . '/includes/grouprelationships.inc';
  $args['group_from_node'] = array(
    'title' => t("Group from node"),
    'keyword' => 'group',
    'description' => t('Adds a group from a node context; if multiple groups are associated with a node, this will get the "first" group only.'),
    'required context' => new panels_required_context(t('Node'), 'node'),
    'context' => 'panels_group_from_node_context',
  );
  return $args;
}