summaryrefslogtreecommitdiff
path: root/modules/user/user.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/user/user.module')
-rw-r--r--modules/user/user.module12
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index 02ee1bc66..d53bf74aa 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -96,7 +96,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.
+ * Setting a field to NULL deletes it from the data column.
*
* @param $category
* (optional) The category for storing profile information in.
@@ -121,7 +121,7 @@ function user_save($account, $array = array(), $category = 'account') {
}
else if ($key != 'roles') {
// Roles is a special case: it used below.
- if ($value === null) {
+ if ($value === NULL) {
unset($data[$key]);
}
else {
@@ -198,7 +198,7 @@ function user_save($account, $array = array(), $category = 'account') {
// Build and save the serialized data field now
$data = array();
foreach ($array as $key => $value) {
- if ((substr($key, 0, 4) !== 'auth') && ($key != 'roles') && (!in_array($key, $user_fields)) && ($value !== null)) {
+ if ((substr($key, 0, 4) !== 'auth') && ($key != 'roles') && (!in_array($key, $user_fields)) && ($value !== NULL)) {
$data[$key] = $value;
}
}
@@ -372,7 +372,7 @@ function user_access($string, $account = NULL) {
/**
* Checks for usernames blocked by user administration
*
- * @return boolean true for blocked users, false for active
+ * @return boolean TRUE for blocked users, FALSE for active
*/
function user_is_blocked($name) {
$allow = db_fetch_object(db_query("SELECT * FROM {users} WHERE status = 1 AND name = LOWER('%s')", $name));
@@ -458,7 +458,7 @@ function user_file_download($file) {
/**
* Implementation of hook_search().
*/
-function user_search($op = 'search', $keys = null) {
+function user_search($op = 'search', $keys = NULL) {
switch ($op) {
case 'name':
if (user_access('access user profiles')) {
@@ -637,7 +637,7 @@ function theme_user_picture($account) {
if (isset($picture)) {
$alt = t('%user\'s picture', array('%user' => $account->name ? $account->name : variable_get('anonymous', 'Anonymous')));
- $picture = theme('image', $picture, $alt, $alt, '', false);
+ $picture = theme('image', $picture, $alt, $alt, '', FALSE);
if (!empty($account->uid) && user_access('access user profiles')) {
$picture = l($picture, "user/$account->uid", array('title' => t('View user profile.')), NULL, NULL, FALSE, TRUE);
}