theme_user_profile

Versions
4.6 – 5
theme_user_profile($account, $fields)
6
theme_user_profile($account)
7
theme_user_profile($elements)

Code

modules/user.module, line 620

<?php
function theme_user_profile($account, $fields) {
  $output = "<div class=\"profile\">\n";
  $output .= theme('user_picture', $account);
  foreach ($fields as $category => $value) {
    $output .= "<h2>$category</h2>$value";
  }
  $output .= "</div>\n";

  return $output;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.