theme_profile_listing

Definition

theme_profile_listing($account, $fields = array())
profile/profile.module, line 777

Code

<?php
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;
}
?>