You are here

function messaging_address_get_uid in Messaging 6.4

Map mail to uid

1 string reference to 'messaging_address_get_uid'
messaging_mail_messaging in messaging_mail/messaging_mail.module
Implementation of hook_messaging()

File

./messaging.module, line 546

Code

function messaging_address_get_uid($address, $property = 'mail') {
  return db_result(db_query("SELECT uid FROM {users} WHERE {$property} = '%s'", $address));
}