You are here

function views_import_access in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 8.3 views.module \views_import_access()
  2. 6.2 views.module \views_import_access()
  3. 7.3 views.module \views_import_access()

Access callback to determine if the user can import Views.

View imports require an additional access check because they are PHP code and PHP is more locked down than administer views.

1 string reference to 'views_import_access'
views_ui_menu in ./views_ui.module

File

./views.module, line 611
Primarily Drupal hooks and global API functions to manipulate views.

Code

function views_import_access() {
  return user_access('administer views') && user_access('use PHP for block visibility');
}