You are here

og_context_plugin_argument_default_group_context.inc in Organic groups 7

Contains the group context argument default plugin.

File

og_context/includes/views/og_context_plugin_argument_default_group_context.inc
View source
<?php

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

/**
 * The group context argument default handler.
 */
class og_context_plugin_argument_default_group_context extends views_plugin_argument_default {

  /**
   * Return the group context argument.
   */
  function get_argument() {
    $return = FALSE;
    if ($group = og_context()) {
      $return = $group->gid;
    }
    return $return;
  }

}

Classes

Namesort descending Description
og_context_plugin_argument_default_group_context The group context argument default handler.