Add autocomplete widget to switch to a certain user

agerson - May 29, 2009 - 23:52
Project:Administration menu
Version:6.x-3.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

With administration menu and devel installed I get the great switch user menu. I plan to have a site with thousands of users. Can I filter which users show up in that menu?

#1

moshe weitzman - May 30, 2009 - 00:38
Project:Devel» Administration menu
Version:6.x-1.9» 6.x-3.x-dev
Component:devel» Code

you'd have to ask admin_menu. we do not expose any usernames except in a block which is not used by admin menu AFAIK

#2

sun - May 30, 2009 - 18:13
Title:Devel Switch user and admin menu» Add autocomplete widget to switch to a certain user
Category:support request» feature request

admin_menu uses the same user list that Devel uses for its block. Those users are ordered by whether a user is able to switch, followed by any other users.

However, I always wanted to expand this integration by exposing an autocomplete widget (the first real widget) that allows you to search and switch to a certain user.

Hence, better title.

#3

agerson - May 30, 2009 - 21:26

What controls if a user "is able to switch"? Don't see it as a permissions.

#4

agerson - May 30, 2009 - 21:29

Ahh, its a devel permissions, but doesn't that permission control who can switch users, not who shows up in the list?

#5

sun - May 30, 2009 - 22:17

Users in the switch user list are ordered by that permission first, yes. As of now, I don't think you can affect who shows up in that list. Anyway, an autocomplete widget is the only solution for your "thousands of users".

#6

agerson - May 31, 2009 - 18:36

Ok, that would be a great feature.

 
 

Drupal is a registered trademark of Dries Buytaert.