title: Is there any way to get uid from user name in Drupal?
body: <p>Is there any core function to get uid from username in Drupal?
  Or I should perform a db query?
  my field is a textfield with '#autocomplete_path' equal to 'user/autocomplete'</p>