Commit acf9368d authored by Dries's avatar Dries

- 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
......@@ -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') {
......
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