diff options
Diffstat (limited to 'modules/profile/profile.module')
-rw-r--r-- | modules/profile/profile.module | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/profile/profile.module b/modules/profile/profile.module index 5560bba6e..c9cdfaa60 100644 --- a/modules/profile/profile.module +++ b/modules/profile/profile.module @@ -315,11 +315,13 @@ function profile_view_profile($user) { if ($value = profile_view_field($user, $field)) { $description = ($field->visibility == PROFILE_PRIVATE) ? t('The content of this field is private and only visible to yourself.') : ''; $title = ($field->type != 'checkbox') ? check_plain($field->title) : ''; - $form = array('#title' => $title, '#value' => $value, '#description' => $description); - $fields[$field->category][$field->name] = theme('item', $form); + $item = array('title' => $title, + 'value' => $value, + 'class' => $field->name, + ); + $fields[$field->category][] = $item; } } - return $fields; } |