You are here

function og_context_plugin_access_og_perm::option_definition in Organic groups 7.2

Same name and namespace in other branches
  1. 7 og_context/includes/views/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/handlers/og_context_plugin_access_og_perm.inc, line 18
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',
  );
  $options['group_type'] = array(
    'default' => 'node',
  );
  $options['group_id_arg'] = array(
    'default' => FALSE,
  );
  return $options;
}