function pet_lookup_uid in Previewable email templates 6
Same name and namespace in other branches
- 8.4 pet.module \pet_lookup_uid()
- 8 pet.module \pet_lookup_uid()
- 7 pet.module \pet_lookup_uid()
Helper function to look up a uid from mail.
2 calls to pet_lookup_uid()
- pet_send_mail in ./
pet.module - Send tokenized email to each recipient. Called once form passes validation. Can also be called directly from code.
- pet_validate_recipients in ./
pet.admin.inc - Validate existence of a non-empty recipient list free of email errors.
File
- ./
pet.module, line 458 - Previewable E-mail Template module.
Code
function pet_lookup_uid($mail) {
return db_result(db_query_range("SELECT uid FROM {users} WHERE mail LIKE '%s'", $mail, 0, 1));
}