theme_profile_block

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

Code

modules/profile.module, line 741

<?php
function theme_profile_block($account, $fields = array()) {

  $output .= theme('user_picture', $account);

  foreach ($fields as $field) {
    if ($field->value) {
      if ($field->type == 'checkbox') {
        $output .= "<p>$field->value</p>\n";
      }
      else {
        $output .= '<p><strong>' . check_plain($field->title) . "</strong><br />$field->value</p>\n";
      }
    }
  }

  return $output;
}
?>