Skip to content
Snippets Groups Projects
Commit b090fc1a authored by Neil Drumm's avatar Neil Drumm :wave:
Browse files

#49403 by Bèr and jvandyk, improve documentation for user_save.

parent 58db2b27
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
......@@ -88,10 +88,11 @@ function user_load($array = array()) {
}
/**
* Save changes to a user account.
* Save changes to a user account or add a new user.
*
* @param $account
* The $user object for the user to modify.
* The $user object for the user to modify or add. If $user->uid is
* omitted, a new user will be added.
*
* @param $array
* An array of fields and values to save. For example array('name' => 'My name');
......
......@@ -88,10 +88,11 @@ function user_load($array = array()) {
}
/**
* Save changes to a user account.
* Save changes to a user account or add a new user.
*
* @param $account
* The $user object for the user to modify.
* The $user object for the user to modify or add. If $user->uid is
* omitted, a new user will be added.
*
* @param $array
* An array of fields and values to save. For example array('name' => 'My name');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment