1 views_handler_filter_user_roles.inc views_handler_filter_user_roles::operators()

Override empty and not empty operator labels to be clearer for user roles.

Overrides views_handler_filter_many_to_one::operators

File

core/modules/user/views/views_handler_filter_user_roles.inc, line 22
Definition of views_handler_filter_user_roles.

Class

views_handler_filter_user_roles
Filter handler for user roles.

Code

function operators() {
  $operators = parent::operators();
  $operators['empty']['title'] = t("Only has the 'Authenticated' role");
  $operators['not empty']['title'] = t("Has roles in addition to 'Authenticated'");
  return $operators;
}