From bc44805f3cae8e18a300db9fa3469ff0daf17ac1 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Mon, 11 Apr 2005 22:31:12 +0000 Subject: - #20338: Improve api docs on $user field deletion. --- modules/user.module | 2 +- modules/user/user.module | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/user.module b/modules/user.module index 0384170e5..04db17f12 100644 --- a/modules/user.module +++ b/modules/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 { 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 { -- cgit v1.2.3