You are here

function views_permission in Views (for Drupal 7) 7.3

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

Implements hook_permission().

File

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