Skip to content
Snippets Groups Projects
Commit acf9368d authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #764428 by aaronmontana: user_validate_picture() is undocumented;...

- Patch #764428 by aaronmontana: user_validate_picture() is undocumented; user_account_form() validation functions missing @see links.
parent 47653eae
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -607,6 +607,11 @@ function user_validate_mail($mail) {
}
}
/**
* Validates an image uploaded by a user.
*
* @see user_account_form()
*/
function user_validate_picture(&$form, &$form_state) {
// If required, validate the uploaded picture.
$validators = array(
......@@ -915,6 +920,11 @@ function user_user_view($account) {
/**
* Helper function to add default user account fields to user registration and edit form.
*
* @see user_account_form_validate()
* @see user_validate_current_pass()
* @see user_validate_picture()
* @see user_validate_email()
*/
function user_account_form(&$form, &$form_state) {
global $user;
......@@ -1088,6 +1098,8 @@ function user_account_form(&$form, &$form_state) {
/**
* Form validation handler for the current password on the user_account_form().
*
* @see user_account_form()
*/
function user_validate_current_pass(&$form, &$form_state) {
global $user;
......@@ -1112,6 +1124,8 @@ function user_validate_current_pass(&$form, &$form_state) {
/**
* Form validation handler for user_account_form().
*
* @see user_account_form()
*/
function user_account_form_validate($form, &$form_state) {
if ($form['#user_category'] == 'account' || $form['#user_category'] == 'register') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment