user_user_view

7 user.module user_user_view($account)
8 user.module user_user_view($account)

Implements hook_user_view().

File

modules/user/user.module, line 973
Enables the user registration and login system.

Code

function user_user_view($account) {
  $account->content['user_picture'] = array(
    '#markup' => theme('user_picture', array('account' => $account)), 
    '#weight' => -10,
  );
  if (!isset($account->content['summary'])) {
    $account->content['summary'] = array();
  }
  $account->content['summary'] += array(
    '#type' => 'user_profile_category', 
    '#attributes' => array('class' => array('user-member')), 
    '#weight' => 5, 
    '#title' => t('History'),
  );
  $account->content['summary']['member_for'] = array(
    '#type' => 'user_profile_item', 
    '#title' => t('Member for'), 
    '#markup' => format_interval(REQUEST_TIME - $account->created),
  );
}
Login or register to post comments