theme_profile_listing

  1. drupal
    1. 4.7
    2. 5 profile.module
    3. 6 theme.php
    4. 7 theme.php
Versions
4.7 – 5 theme_profile_listing($account, $fields = array())
6 theme_profile_listing()
7 theme_profile_listing($variables)

Code

modules/profile.module, line 759

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