Skip to content
Snippets Groups Projects

Issue #3307657: User profiles: Add usernames beneath mentor pictures in sidebar

+ 8
8
@@ -7591,17 +7591,17 @@ function drupalorg_field_formatter_view($entity_type, $entity, $field, $instance
if (isset($filepath)) {
$username = format_username($account);
$element[$delta] = array('#markup' => l(theme('image_style', array(
$element[$delta] = ['#markup' => l(theme('image_style', [
'style_name' => 'drupalorg_user_picture_large',
'path' => $filepath,
'alt' => t('@user’s picture', array('@user' => $username)),
)), 'user/' . $account->uid, array(
'attributes' => array(
'title' => t('View @user’s profile.', array('@user' => $username)),
'class' => array('picture'),
),
'alt' => t('@user’s picture', ['@user' => $username]),
]) . check_plain($username), 'user/' . $account->uid, [
'attributes' => [
'title' => t('View @user’s profile.', ['@user' => $username]),
'class' => ['picture'],
],
'html' => TRUE,
)));
])];
}
}
Loading