You are here

function theme_profile_listing in Drupal 5

Same name and namespace in other branches
  1. 4 modules/profile.module \theme_profile_listing()
1 theme call to theme_profile_listing()
profile_browse in modules/profile/profile.module
Menu callback; display a list of user information.

File

modules/profile/profile.module, line 785
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;
}