summaryrefslogtreecommitdiff
path: root/modules/profile.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/profile.module')
-rw-r--r--modules/profile.module8
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/profile.module b/modules/profile.module
index 5560bba6e..c9cdfaa60 100644
--- a/modules/profile.module
+++ b/modules/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;
}