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

Default theme implementation to present profile categories (groups of profile items).

Categories are defined when configuring user profile fields for the site. It can also be defined by modules. All profile items for a category will be output through the $profile_items variable.

where each profile item is rendered. It is implemented as a definition list by default. where all items and categories are collected and printed out.

Available variables:

  • $title: Category title for the group of items.
  • $profile_items: All the items for the group rendered through user-profile-item.tpl.php.
  • $attributes: HTML attributes. Usually renders classes.

See also

user-profile-item.tpl.php

user-profile.tpl.php

template_preprocess_user_profile_category()

4 string references to the theme hook from user-profile-category.tpl.php

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

profile_user_view in modules/profile/profile.module
Implements hook_user_view().
user_element_info in modules/user/user.module
Implements hook_element_info().
user_theme in modules/user/user.module
Implements hook_theme().
user_user_view in modules/user/user.module
Implements hook_user_view().

File

modules/user/user-profile-category.tpl.php
View source
  1. <?php
  2. /**
  3. * @file
  4. * Default theme implementation to present profile categories (groups of
  5. * profile items).
  6. *
  7. * Categories are defined when configuring user profile fields for the site.
  8. * It can also be defined by modules. All profile items for a category will be
  9. * output through the $profile_items variable.
  10. *
  11. * @see user-profile-item.tpl.php
  12. * where each profile item is rendered. It is implemented as a definition
  13. * list by default.
  14. * @see user-profile.tpl.php
  15. * where all items and categories are collected and printed out.
  16. *
  17. * Available variables:
  18. * - $title: Category title for the group of items.
  19. * - $profile_items: All the items for the group rendered through
  20. * user-profile-item.tpl.php.
  21. * - $attributes: HTML attributes. Usually renders classes.
  22. *
  23. * @see template_preprocess_user_profile_category()
  24. */
  25. ?>
  26. <?php if ($title): ?>
  27. <h3><?php print $title; ?></h3>
  28. <?php endif; ?>
  29. <dl<?php print $attributes; ?>>
  30. <?php print $profile_items; ?>
  31. </dl>