- Patch #/38339 by crunchywelch: make the profile module display fields properly.

4.7.x
Dries Buytaert 2005-11-23 10:43:30 +00:00
parent 90b3e88ec4
commit 86db338c64
2 changed files with 4 additions and 4 deletions

View File

@ -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);
}
}

View File

@ -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);
}
}