theme_profile_block

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

1 theme call to theme_profile_block()

File

modules/profile/profile.module, line 767
Support for configurable user profiles.

Code

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