You are here

public function simple_access_views_plugin_group::get_access_callback in Simple Access 7.2

Same name and namespace in other branches
  1. 6.2 views/simple_access_views_plugin_group.inc \simple_access_views_plugin_group::get_access_callback()

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

views/simple_access_views_plugin_group.inc, line 22
Views access plugin to make use of cimple access.

Class

simple_access_views_plugin_group
@file Views access plugin to make use of cimple access.

Code

public function get_access_callback() {
  return array(
    'simple_access_groups_check_user',
    array(
      array_filter($this->options['groups']),
    ),
  );
}