$result = db_query_range("SELECT name FROM {users} u WHERE status <> 0 AND LOWER(name) LIKE LOWER('%s%%') AND data NOT LIKE '%\"privatemsg_allow\";s:0%'", $string, 0, 10);
  while ($user = db_fetch_object($result)) {
    $matches[$user->name] = check_plain($user->name);
  }

This code (in my opinion) needs to be changed to display theme('username',$user)...

Comments

alippai’s picture

I don't know that autocomplete field supports posting uid but displaying name. :S

chx’s picture

Version: » 5.x-2.x-dev
Status: Active » Closed (won't fix)

Huh? theme username might contain HTML and whatnot , the autocomplete appears in a simple textfield. This is inappropriate. And core does nto do it either.