function theme_profile_listing in Drupal 4
Same name and namespace in other branches
- 5 modules/profile/profile.module \theme_profile_listing()
1 theme call to theme_profile_listing()
- profile_browse in modules/
profile.module - Menu callback; display a list of user information.
File
- modules/
profile.module, line 758 - Support for configurable user profiles.
Code
function theme_profile_listing($account, $fields = array()) {
$output = "<div class=\"profile\">\n";
$output .= theme('user_picture', $account);
$output .= ' <div class="name">' . theme('username', $account) . "</div>\n";
foreach ($fields as $field) {
if ($field->value) {
$output .= " <div class=\"field\">{$field->value}</div>\n";
}
}
$output .= "</div>\n";
return $output;
}