1 views_test_plugin_access_test_dynamic.inc | views_test_plugin_access_test_dynamic::access($account) |
Determine if the current user has access or not.
Overrides views_plugin_access::access
File
- core/
modules/ views/ tests/ views_test/ test_plugins/ views_test_plugin_access_test_dynamic.inc, line 18 - Definition of views_test_plugin_access_test_dynamic.
Class
- views_test_plugin_access_test_dynamic
- Tests a dynamic access plugin.
Code
function access($account) {
return !empty($this->options['access']) && isset($this->view->args[0]) && $this->view->args[0] == state_get('test_dynamic_access_argument1', NULL) && isset($this->view->args[1]) && $this->view->args[1] == state_get('test_dynamic_access_argument2', NULL);
}