Privatemsg module shows admin and myself in autocomplete I am using Drupal 7. In the Privatemsg module my autocomplete shows myself and admin. How can I disable displaying the user who's logged in in the autocomplete and disable displaying admin?
Put this code in your template.php file

function yourtheme-name_query_privatemsg_autocomplete_alter($query) {
  global $user;
  $query-&gt; condition('u.uid' , $user-&gt;uid, '&lt;&gt;');
}