diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-04-11 22:31:12 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-04-11 22:31:12 +0000 |
commit | bc44805f3cae8e18a300db9fa3469ff0daf17ac1 (patch) | |
tree | 2b375f2edcde6482fe4a12a652835e5bc6088036 /modules/user/user.module | |
parent | 5b6472ef794bab03775b85dc67c65a9479bbe56b (diff) | |
download | brdo-bc44805f3cae8e18a300db9fa3469ff0daf17ac1.tar.gz brdo-bc44805f3cae8e18a300db9fa3469ff0daf17ac1.tar.bz2 |
- #20338: Improve api docs on $user field deletion.
Diffstat (limited to 'modules/user/user.module')
-rw-r--r-- | modules/user/user.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/user/user.module b/modules/user/user.module index 0384170e5..04db17f12 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -89,6 +89,7 @@ function user_load($array = array()) { * * @param $array * An array of fields and values to save. For example array('name' => 'My name'); + * Setting a field to null deletes it from the data column. * * @param $category * (optional) The category for storing profile information in. @@ -114,7 +115,6 @@ function user_save($account, $array = array(), $category = 'account') { else if ($key != 'roles') { // Roles is a special case: it used below. if ($value === null) { - // Setting a field to null deletes it from the data column. unset($data[$key]); } else { |