C:/drupal/modules/user/user-profile.tpl.php File Reference

Go to the source code of this file.


Variables

print $user_profile


Detailed Description

Default theme implementation to present all user profile data.

This template is used when viewing a registered member's profile page, e.g., example.com/user/123. 123 being the users ID.

By default, all user profile data is printed out with the $user_profile variable. If there is a need to break it up you can use $profile instead. It is keyed to the name of each category or other data attached to the account. If it is a category it will contain all the profile items. By default $profile['summary'] is provided which contains data on the user's history. Other data can be included by modules. $profile['picture'] is available by default showing the account picture.

Also keep in mind that profile items and their categories can be defined by site administrators. They are also available within $profile. For example, if a site is configured with a category of "contact" with fields for of addresses, phone numbers and other related info, then doing a straight print of $profile['contact'] will output everything in the category. This is useful for altering source order and adding custom markup for the group.

To check for all available data within $profile, use the code below.

<?php print '

'. check_plain(print_r($profile, 1)) .'
'; ?>

See also:
user-profile-category.tpl.php where the html is handled for the group.

user-profile-field.tpl.php where the html is handled for each item in the group.

Available variables:

See also:
template_preprocess_user_profile()

Definition in file user-profile.tpl.php.


Variable Documentation

print $user_profile

Definition at line 45 of file user-profile.tpl.php.


Generated on Mon Jun 2 15:08:33 2008 for SimpleTest by  1.5.5