You are here

function Notifications_User_Field::autocomplete_parse in Notifications 7

Parse value from autocomplete

Overrides Notifications_Field_Autocomplete::autocomplete_parse

File

./notifications.field.inc, line 568
Drupal Notifications Framework - Default class file

Class

Notifications_User_Field
Drupal user

Code

function autocomplete_parse($string) {
  if ($user = user_load_by_name($string)) {
    return $user->uid;
  }
}