function og_context_plugin_argument_default_group_context::get_argument in Organic groups 7.2
Same name and namespace in other branches
- 7 og_context/includes/views/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/ handlers/ og_context_plugin_argument_default_group_context.inc, line 47 - 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() {
if ($group = og_context($this->options['group_type'], NULL, NULL, $this->options['check_access'])) {
return $group['gid'];
}
return FALSE;
}