summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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');