You are here

function views_access_callback_plugin_access_callback::get_access_callback in Views Access Callback 7

Same name and namespace in other branches
  1. 6 views_access_callback_plugin_access_callback.inc \views_access_callback_plugin_access_callback::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_access_callback_plugin_access_callback.inc, line 12

Class

views_access_callback_plugin_access_callback
Access plugin that provides callback-function-based access control.

Code

function get_access_callback() {
  return array(
    'views_access_callback_access_callback',
    array(
      $this->view->name,
      $this->display->id,
      $this->options['views_access_callback'],
    ),
  );
}