function og_context_plugin_access_og_perm::option_definition in Organic groups 7
Same name and namespace in other branches
- 7.2 og_context/includes/views/handlers/og_context_plugin_access_og_perm.inc \og_context_plugin_access_og_perm::option_definition()
Retrieve the options when this is a new access control plugin
Overrides views_plugin_access::option_definition
File
- og_context/
includes/ views/ og_context_plugin_access_og_perm.inc, line 40 - Contains views access plugin for OG permissions
Class
- og_context_plugin_access_og_perm
- Allow views to allow access to only users with a specified permission in the current group.
Code
function option_definition() {
$options = parent::option_definition();
$options['perm'] = array(
'default' => 'edit group',
);
return $options;
}