function views_import_access

cis7 views.module views_import_access()
cle7 views.module views_import_access()
elmsmedia7 views.module views_import_access()
icor7 views.module views_import_access()
meedjum_blog7 views.module views_import_access()
mooc7 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 sites/all/modules/ulmus/views/views_ui.module
Implements hook_menu().

File

sites/all/modules/ulmus/views/views.module, line 943
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 settings');
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.