1 views_handler_argument_users_roles.inc views_handler_argument_users_roles::title_query()

Override for specific title lookups.

Overrides views_handler_argument_many_to_one::title_query

File

core/modules/user/views/views_handler_argument_users_roles.inc, line 8

Class

views_handler_argument_users_roles
Allow role names as an argument.

Code

function title_query() {
  $role_names = backdrop_map_assoc((array) $this->value);
  $roles = user_roles();
  $roles = array_diff_key($roles, $role_names);
  return $roles;
}