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

Go to the source code of this file.


Variables

print $picture


Detailed Description

Default theme implementation for displaying a users profile within a block. It only shows in relation to a node displayed as a full page.

Available variables:

Each $field in $profile contains:

Since $profile is keyed, a direct print of the field is possible. Not all accounts may have a value for a profile so do a check first. If a field of "last_name" was set for the site, the following can be used.

<?php if (isset($profile['last_name'])): ?>

<?php print $profile['last_name']->title; ?>:
<?php print $profile['last_name']->value; ?>
<?php endif; ?>

See also:
template_preprocess_profile_block()

Definition in file profile-block.tpl.php.


Variable Documentation

print $picture

Definition at line 33 of file profile-block.tpl.php.


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