Skip navigation
Help

user-profile-item.tpl.php

  1. drupal
    1. 6 drupal/modules/user/user-profile-item.tpl.php
    2. 7 drupal/modules/user/user-profile-item.tpl.php

Default theme implementation to present profile items (values from user account profile fields or modules).

This template is used to loop through and render each field configured for the user's account. It can also be the data from modules. The output is grouped by categories.

for the parent markup. Implemented as a definition list by default. where all items and categories are collected and printed out.

Available variables:

  • $title: Field title for the profile item.
  • $value: User defined value for the profile item or data from a module.
  • $attributes: HTML attributes. Usually renders classes.

See also

user-profile-category.tpl.php

user-profile.tpl.php

template_preprocess_user_profile_item()

File

drupal/modules/user/user-profile-item.tpl.php
View source
  1. <?php
  2. /**
  3. * @file
  4. * Default theme implementation to present profile items (values from user
  5. * account profile fields or modules).
  6. *
  7. * This template is used to loop through and render each field configured
  8. * for the user's account. It can also be the data from modules. The output is
  9. * grouped by categories.
  10. *
  11. * @see user-profile-category.tpl.php
  12. * for the parent markup. Implemented as a definition list by default.
  13. * @see user-profile.tpl.php
  14. * where all items and categories are collected and printed out.
  15. *
  16. * Available variables:
  17. * - $title: Field title for the profile item.
  18. * - $value: User defined value for the profile item or data from a module.
  19. * - $attributes: HTML attributes. Usually renders classes.
  20. *
  21. * @see template_preprocess_user_profile_item()
  22. */
  23. ?>
  24. <dt<?php print $attributes; ?>><?php print $title; ?></dt>
  25. <dd<?php print $attributes; ?>><?php print $value; ?></dd>