user_user_view
function user_user_view
user_user_view($account)
Implements hook_user_view().
File
- modules/user/user.module, line 1018
- 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), ); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!user!user.module/function/user_user_view/7.x