1 views_plugin_argument_default_php.inc views_plugin_argument_default_php::access()

Only let users with PHP block visibility permissions set/modify this default plugin.

Overrides views_plugin_argument_default::access

File

core/modules/views/plugins/views_plugin_argument_default_php.inc, line 43
Contains the php code argument default plugin.

Class

views_plugin_argument_default_php
Default argument plugin to provide a PHP code block.

Code

function access() {
  return user_access('use PHP for settings');
}