From 86db338c64bc8da4673500ce60ef1f1075b34df3 Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Wed, 23 Nov 2005 10:43:30 +0000
Subject: [PATCH] - Patch #/38339 by crunchywelch: make the profile module
 display fields properly.

---
 modules/profile.module         | 4 ++--
 modules/profile/profile.module | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/profile.module b/modules/profile.module
index 43adbe58df37..605e9ccb3f6c 100644
--- a/modules/profile.module
+++ b/modules/profile.module
@@ -318,8 +318,8 @@ 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('#type' => 'item', '#title' => $title, '#value' => $value, '#description' => $description);
-      $fields[$field->category][$field->name] = drupal_get_form('profile_view_profile_' . $field->category .'_'. $field->name, $form, 'profile_view_profile');
+      $form = array('#title' => $title, '#value' => $value, '#description' => $description);
+      $fields[$field->category][$field->name] = theme('item', $form);
     }
   }
 
diff --git a/modules/profile/profile.module b/modules/profile/profile.module
index 43adbe58df37..605e9ccb3f6c 100644
--- a/modules/profile/profile.module
+++ b/modules/profile/profile.module
@@ -318,8 +318,8 @@ 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('#type' => 'item', '#title' => $title, '#value' => $value, '#description' => $description);
-      $fields[$field->category][$field->name] = drupal_get_form('profile_view_profile_' . $field->category .'_'. $field->name, $form, 'profile_view_profile');
+      $form = array('#title' => $title, '#value' => $value, '#description' => $description);
+      $fields[$field->category][$field->name] = theme('item', $form);
     }
   }
 
-- 
GitLab