You are here

function signup_plugin_access_user_signup_list::get_access_callback in Signup 7

Same name and namespace in other branches
  1. 6.2 views/plugins/signup_plugin_access_user_signup_list.inc \signup_plugin_access_user_signup_list::get_access_callback()
  2. 6 views/plugins/signup_plugin_access_user_signup_list.inc \signup_plugin_access_user_signup_list::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/plugins/signup_plugin_access_user_signup_list.inc, line 26

Class

signup_plugin_access_user_signup_list
Validate whether an argument is a user who has permission to view signups.

Code

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