Commit 08a07d77 authored by webchick's avatar webchick

#764426 by aaronmontana, rickvug: Fixed user_validate_mail() is undocumented.

parent 4ce4c4eb
......@@ -575,6 +575,19 @@ function user_validate_name($name) {
}
}
/**
* Validates a user's email address.
*
* Checks that a user's email address exists and follows all standard
* validation rules. Returns error messages when the address is invalid.
*
* @param $mail
* A user's email address.
*
* @return
* If the address is invalid, a human-readable error message is returned.
* If the address is valid, nothing is returned.
*/
function user_validate_mail($mail) {
$mail = trim($mail);
if (!$mail) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment