1 views.module | views_permission() |
Implement hook_permission().
File
- core/
modules/ views/ views.module, line 358 - Primarily Backdrop hooks and global API functions to manipulate views.
Code
function views_permission() {
return array(
'administer views' => array(
'title' => t('Administer views'),
'description' => t('Access the views administration pages.'),
'restrict access' => TRUE,
'warning' => t('Publicly display any existing content on the site, and manipulate admin user interfaces.'),
),
'access all views' => array(
'title' => t('Bypass views access control'),
'description' => t('Bypass access control when accessing views.'),
'restrict access' => TRUE,
'warning' => t('Provides full access to all views, regardless of their defined permissions.'),
),
);
}