function hook_views_access_callbacks in Views Access Callback 8
Same name and namespace in other branches
- 7 views_access_callback.api.php \hook_views_access_callbacks()
Describes callback functions to Views Access Callback.
This hook should be placed in MODULENAME.module.
Return value
An associative array describing the callback functions. Primary key is the name of the function that should be called to check whether a user has access to the view. The value for the key entry is a translated string describing the callback function.
Any arguments passed to the view will also be passed to the callback function.
Related topics
1 invocation of hook_views_access_callbacks()
- ViewsAccessCallback::buildOptionsForm in src/
Plugin/ views/ access/ ViewsAccessCallback.php - Provide a form to edit options for this plugin.
File
- ./
views_access_callback.api.php, line 29 - Describe hooks provided by the Views Access Callback module.
Code
function hook_views_access_callbacks() {
$callbacks['views_access_callback_view_access'] = t('Access my view');
return $callbacks;
}