Index: profile_privacy.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/profile_privacy/profile_privacy.module,v retrieving revision 1.2 diff -u -p -r1.2 profile_privacy.module --- profile_privacy.module 10 Jul 2008 18:40:08 -0000 1.2 +++ profile_privacy.module 14 Jul 2008 21:37:53 -0000 @@ -14,7 +14,6 @@ function profile_privacy_user($op, &$edi case 'view': $private_fields = profile_privacy_get_user_privacy($account->uid); $profile_fields = profile_privacy_get_fields(); - $return_fields = array(); // Do not hide any information from administers if (!user_access('administer users')) { foreach ($profile_fields as $field) { @@ -25,7 +24,7 @@ function profile_privacy_user($op, &$edi // ensure that no output will be generated on the profile page, // even if it's being themed with theme_user_profile(). $account->{$field->name} = NULL; - $return_fields[$field->category][$field->name] = NULL; + $account->content[$field->category][$field->name] = NULL; } else { // Generate the fields to be returned since profile module @@ -39,7 +38,7 @@ function profile_privacy_user($op, &$edi ); // TODO: This currently appends the now visible field to the end // of other profile fields, should insert in original position. - $return_fields[$field->category][$field->name] = $item; + $account->content[$field->category][$field->name] = $item; } } } @@ -48,10 +47,10 @@ function profile_privacy_user($op, &$edi // all themed versions elseif ($field->visibility == PROFILE_PRIVATE) { $account->{$field->name} = NULL; + $account->content[$field->category][$field->name] = NULL; } } } - return $return_fields; break; case 'update': case 'insert':