You are here

function domain_views_plugin_access::option_definition in Domain Views 7

Retrieve the options when this is a new access control plugin.

Overrides views_plugin_access::option_definition

File

includes/domain_views_plugin_access.inc, line 25
Domain Views plugin that restricts View display based on the current domain. This plugin respects hook_domaingrants().

Class

domain_views_plugin_access
@file Domain Views plugin that restricts View display based on the current domain. This plugin respects hook_domaingrants().

Code

function option_definition() {
  $options = parent::option_definition();

  // Handle 7.x.2 and 7.x.3.
  $default = domain_default_id();
  if ($default == 0) {
    $default = -1;
  }
  $options['domains'] = array(
    'default' => array(
      $default => $default,
    ),
  );
  $options['domain_strict'] = array(
    'default' => FALSE,
  );
  $options['domain_member'] = array(
    'default' => FALSE,
  );
  return $options;
}