theme_profile_block

Versions
4.7 – 5
theme_profile_block($account, $fields = array())

Code

modules/profile/profile.module, line 767

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