Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
08a07d77
Commit
08a07d77
authored
May 05, 2010
by
webchick
Browse files
#764426
by aaronmontana, rickvug: Fixed user_validate_mail() is undocumented.
parent
4ce4c4eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/user/user.module
View file @
08a07d77
...
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment