function og_context_plugin_argument_default_group_context::get_argument in Organic groups 7
Same name and namespace in other branches
- 7.2 og_context/includes/views/handlers/og_context_plugin_argument_default_group_context.inc \og_context_plugin_argument_default_group_context::get_argument()
Return the group context argument.
Overrides views_plugin_argument_default::get_argument
File
- og_context/
includes/ views/ og_context_plugin_argument_default_group_context.inc, line 16 - Contains the group context argument default plugin.
Class
- og_context_plugin_argument_default_group_context
- The group context argument default handler.
Code
function get_argument() {
$return = FALSE;
if ($group = og_context()) {
$return = $group->gid;
}
return $return;
}