function hosting_package_plugin_access::get_access_callback in Hosting 7.4
Same name and namespace in other branches
- 7.3 package/includes/views/plugins/hosting_package_plugin_access.inc \hosting_package_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
an 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
- package/
includes/ views/ plugins/ hosting_package_plugin_access.inc, line 28
Class
- hosting_package_plugin_access
- Access plugin that provides access control for package views.
Code
function get_access_callback() {
return array(
'hosting_package_views_access',
array(
$this->display->display_plugin,
$this->display->id,
),
);
}