You are here

function views_node_access_plugin_access_current_user::get_access_callback in Views node access 7

Same name and namespace in other branches
  1. 6 views_node_access_plugin_access_current_user.inc \views_node_access_plugin_access_current_user::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

1 call to views_node_access_plugin_access_current_user::get_access_callback()
views_node_access_plugin_access_node_type_current_user::get_access_callback in ./views_node_access_plugin_access_node_type_current_user.inc
Determine the access callback and arguments.
1 method overrides views_node_access_plugin_access_current_user::get_access_callback()
views_node_access_plugin_access_node_type_current_user::get_access_callback in ./views_node_access_plugin_access_node_type_current_user.inc
Determine the access callback and arguments.

File

./views_node_access_plugin_access_current_user.inc, line 10
Views access plugin that provides node-type-based access control.

Class

views_node_access_plugin_access_current_user
@file Views access plugin that provides node-type-based access control.

Code

function get_access_callback() {
  return array(
    'views_node_access_current_user',
    array(),
  );
}