function views_php_plugin_access::access in Views PHP 6
Same name and namespace in other branches
- 7.2 plugins/views/views_php_plugin_access.inc \views_php_plugin_access::access()
- 7 plugins/views/views_php_plugin_access.inc \views_php_plugin_access::access()
Implements views_plugin_access#access().
File
- plugins/
views/ views_php_plugin_access.inc, line 48
Class
- views_php_plugin_access
- Access plugin that provides access control based on custom PHP code.
Code
function access($account) {
if (!empty($this->options['php_access'])) {
return views_php_check_access($this->options['php_access'], $this->view->name, $this->view->current_display, $account);
}
return TRUE;
}