You are here

public function views_plugin_argument_default_php::access in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 6.3 plugins/views_plugin_argument_default_php.inc \views_plugin_argument_default_php::access()
  2. 6.2 plugins/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

plugins/views_plugin_argument_default_php.inc, line 54
Definition of views_plugin_argument_default_php.

Class

views_plugin_argument_default_php
Default argument plugin to provide a PHP code block.

Code

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