summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-05-16 02:13:44 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-05-16 02:13:44 +0000
commitb090fc1a2146ab0bc07521619c677dd6879de486 (patch)
tree6f98a6d233b2174a65adee003031012dc23c5603
parent58db2b27a40bc6446d040c7476fbe742fb1852fe (diff)
downloadbrdo-b090fc1a2146ab0bc07521619c677dd6879de486.tar.gz
brdo-b090fc1a2146ab0bc07521619c677dd6879de486.tar.bz2
#49403 by Bèr and jvandyk, improve documentation for user_save.
-rw-r--r--modules/user.module5
-rw-r--r--modules/user/user.module5
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');