Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
220
Merge Requests
220
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
bc44805f
Commit
bc44805f
authored
Apr 11, 2005
by
Steven Wittens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-
#20338
: Improve api docs on $user field deletion.
parent
5b6472ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
modules/user.module
modules/user.module
+1
-1
modules/user/user.module
modules/user/user.module
+1
-1
No files found.
modules/user.module
View file @
bc44805f
...
...
@@ -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
{
...
...
modules/user/user.module
View file @
bc44805f
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment