function views_plugin_access::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.

4 methods override views_plugin_access::get_access_callback()
views_plugin_access_perm::get_access_callback in plugins/views_plugin_access_perm.inc
Determine the access callback and arguments.
views_plugin_access_role::get_access_callback in plugins/views_plugin_access_role.inc
Determine the access callback and arguments.
views_test_plugin_access_test_dynamic::get_access_callback in tests/test_plugins/views_test_plugin_access_test_dynamic.inc
Determine the access callback and arguments.
views_test_plugin_access_test_static::get_access_callback in tests/test_plugins/views_test_plugin_access_test_static.inc
Determine the access callback and arguments.

File

plugins/views_plugin_access.inc, line 92

Class

views_plugin_access
The base plugin to handle access control.

Code

public function get_access_callback() {
    // Default to no access control.
    return TRUE;
}