public function views_test_plugin_access_test_dynamic::access in Views (for Drupal 7) 7.3
Determine if the current user has access or not.
Overrides views_plugin_access::access
File
- tests/
test_plugins/ views_test_plugin_access_test_dynamic.inc, line 26 - Definition of views_test_plugin_access_test_dynamic.
Class
- views_test_plugin_access_test_dynamic
- Tests a dynamic access plugin.
Code
public function access($account) {
return !empty($this->options['access']) && isset($this->view->args[0]) && $this->view->args[0] == variable_get('test_dynamic_access_argument1', NULL) && isset($this->view->args[1]) && $this->view->args[1] == variable_get('test_dynamic_access_argument2', NULL);
}