You are here

function domain_views_plugin_access::get_access_callback in Domain Views 7

Determine the access callback and arguments.

This information will be embedded in the menu in order to reduce performance hits during menu item access testing, which happens a lot.

Return value

array The first item should be the function to call, and the second item should be an array of arguments. The first item may also be TRUE (bool only) which will indicate no access control.

Overrides views_plugin_access::get_access_callback

File

includes/domain_views_plugin_access.inc, line 17
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 get_access_callback() {
  return array(
    'domain_views_access',
    array(
      array_filter($this->options['domains']),
      $this->options['domain_strict'],
      $this->options['domain_member'],
    ),
  );
}