Commit b090fc1a authored by drumm's avatar drumm

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

parent 58db2b27
......@@ -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');
......
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