diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-05-16 02:13:44 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-05-16 02:13:44 +0000 |
commit | b090fc1a2146ab0bc07521619c677dd6879de486 (patch) | |
tree | 6f98a6d233b2174a65adee003031012dc23c5603 /modules | |
parent | 58db2b27a40bc6446d040c7476fbe742fb1852fe (diff) | |
download | brdo-b090fc1a2146ab0bc07521619c677dd6879de486.tar.gz brdo-b090fc1a2146ab0bc07521619c677dd6879de486.tar.bz2 |
#49403 by Bèr and jvandyk, improve documentation for user_save.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/user.module | 5 | ||||
-rw-r--r-- | modules/user/user.module | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/modules/user.module b/modules/user.module index 28df629d7..6406a826e 100644 --- a/modules/user.module +++ b/modules/user.module @@ -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'); diff --git a/modules/user/user.module b/modules/user/user.module index 28df629d7..6406a826e 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -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'); |