user-picture.tpl.php

Last updated on
7 December 2017

Drupal 7 will no longer be supported after January 5, 2025. Learn more and find resources for Drupal 7 sites

The user-picture.tpl.php returns HTML for a picture configured for the user's account.

Available variables:

$user_picture:
Image set by the user or the site's default. Will be linked depending on the viewer's permission to view the user's profile page.
$account
Array of account information. Potentially unsafe. Be sure to check_plain() before use.

See also

template_preprocess_user_picture()

Help improve this page

Page status: No known problems

You can: