Community Documentation

user-picture.tpl.php

  1. drupal
    1. 6 user-picture.tpl.php
    2. 7 user-picture.tpl.php
    3. 8 user-picture.tpl.php

user-picture.tpl.php Default theme implementation to present an picture configured for the user's account.

Available variables:

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

See also

template_preprocess_user_picture()

View source
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php

/**
 * @file user-picture.tpl.php
 * Default theme implementation to present an picture configured for the
 * user's account.
 *
 * Available variables:
 * - $picture: Image set by the user or the site's default. Will be linked
 *   depending on the viewer's permission to view the users profile page.
 * - $account: Array of account information. Potentially unsafe. Be sure to
 *   check_plain() before use.
 *
 * @see template_preprocess_user_picture()
 */
?>
<div class="picture">
  <?php print $picture; ?>
</div>
Login or register to post comments