This adds a function to check if the email address is used by other users, either as their main email or an alias

CommentFileSizeAuthor
mailalias.module_0.patch1.02 KBphoolish

Comments

moshe weitzman’s picture

Status: Needs review » Needs work

good idea ... we need to do this like user.module does.

db_num_rows(db_query("SELECT uid FROM {users} WHERE uid != %d AND LOWER(mail) = LOWER('%s')", $uid, $edit['mail']))

also, please use unified diff if possible. see diffandpatch