public function views_plugin_argument_validate_php::access in Views (for Drupal 7) 7.3
Same name and namespace in other branches
- 6.3 plugins/views_plugin_argument_validate_php.inc \views_plugin_argument_validate_php::access()
- 6.2 plugins/views_plugin_argument_validate_php.inc \views_plugin_argument_validate_php::access()
Only let users with PHP block visibility permissions set/modify this validate plugin.
Overrides views_plugin_argument_validate::access
File
- plugins/
views_plugin_argument_validate_php.inc, line 44 - Definition of views_plugin_argument_validate_php.
Class
- views_plugin_argument_validate_php
- Provide PHP code to validate whether or not an argument is ok.
Code
public function access() {
return user_access('use PHP for settings');
}