Skip to content
Snippets Groups Projects
Commit 4a105952 authored by Gerhard Killesreiter's avatar Gerhard Killesreiter
Browse files

#55797, consistency in author block, patch by dww

parent 2e3826ad
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -745,7 +745,12 @@ function theme_profile_block($account, $fields = array()) {
foreach ($fields as $field) {
if ($field->value) {
$output .= "<p><strong>$field->title:</strong><br />$field->value</p>\n";
if ($field->type == 'checkbox') {
$output .= "<p>$field->value</p>\n";
}
else {
$output .= "<p><strong>$field->title</strong><br />$field->value</p>\n";
}
}
}
......
......@@ -745,7 +745,12 @@ function theme_profile_block($account, $fields = array()) {
foreach ($fields as $field) {
if ($field->value) {
$output .= "<p><strong>$field->title:</strong><br />$field->value</p>\n";
if ($field->type == 'checkbox') {
$output .= "<p>$field->value</p>\n";
}
else {
$output .= "<p><strong>$field->title</strong><br />$field->value</p>\n";
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment