user_view
modules/user/user.pages.inc, строка 161
- Версии
- 5
user_view(
$uid= 0)- 6
user_view($account)
Menu callback; Displays a user or user profile page.
Код
<?php
function user_view($account) {
drupal_set_title(check_plain($account->name));
// Retrieve all profile fields and attach to $account->content.
user_build_content($account);
// To theme user profiles, copy modules/user/user_profile.tpl.php
// to your theme directory, and edit it as instructed in that file's comments.
return theme('user_profile', $account);
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии