You are here

function commerce_wishlist_views_access_plugin::get_access_callback in Commerce Wishlist 7.2

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

includes/views/commerce_wishlist.views.inc, line 194

Class

commerce_wishlist_views_access_plugin
Custom class for declaring a custom views access plugin.

Code

function get_access_callback() {
  return array(
    'commerce_wishlist_user_wishlist_access',
    array(
      1,
      $this,
    ),
  );
}