function views_plugin_access_role::get_access_callback

Overrides views_plugin_access::get_access_callback

File

plugins/views_plugin_access_role.inc, line 25

Class

views_plugin_access_role
Access plugin that provides role-based access control.

Code

public function get_access_callback() {
    return array(
        'views_check_roles',
        array(
            array_filter($this->options['role']),
        ),
    );
}