theme_profile_listing

5 profile.module theme_profile_listing($account, $fields = array())
6 theme.php theme_profile_listing()
7 theme.php theme_profile_listing($variables)

1 theme call to theme_profile_listing()

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;
}
Login or register to post comments