- #20338: Improve api docs on $user field deletion.

4.7.x
Steven Wittens 2005-04-11 22:31:12 +00:00
parent 5b6472ef79
commit bc44805f3c
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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 {