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.incView 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
Name![]() |
Description |
---|---|
og_context_plugin_argument_default_group_context | The group context argument default handler. |