You are here

og_views_plugin_argument_default_og_group_node.inc in Organic groups 6.2

Contains the group node argument default plugin.

File

modules/og_views/includes/og_views_plugin_argument_default_og_group_node.inc
View source
<?php

/**
 * @file
 * Contains the group node argument default plugin.
 */

/**
 * Default argument plugin to extract the current group node.
 */
class og_views_plugin_argument_default_og_group_node extends views_plugin_argument_default {
  function argument_form(&$form, &$form_state) {
  }
  function get_argument() {
    if ($group_node = og_get_group_context()) {
      return $group_node->nid;
    }
  }

}

Classes

Namesort descending Description
og_views_plugin_argument_default_og_group_node Default argument plugin to extract the current group node.