function hook_views_access_callbacks in Views Access Callback 7
Same name and namespace in other branches
- 8 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()
- views_access_callback_plugin_access_callback::options_form in ./
views_access_callback_plugin_access_callback.inc - Provide the default form for setting options.
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;
}