You are here

function views_permission in Views (for Drupal 7) 8.3

Same name and namespace in other branches
  1. 7.3 views.module \views_permission()

Implement hook_permission().

File

./views.module, line 448
Primarily Drupal 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.'),
    ),
    'access all views' => array(
      'title' => t('Bypass views access control'),
      'description' => t('Bypass access control when accessing views.'),
    ),
  );
}