Изменение theme_user_profile крюк (добавить функцию к вашему template.php, расположенной в текущей папке темы), как это:
function <your_theme_name>_user_profile($account, $fields) {
// adding the email field to profile
$email = array();
$email["value"] = check_plain($account->mail);
$fields["email"][0] = $email;
// end of adding the email field
// the rest of the default profile hook taken from http://api.drupal.org/api/function/theme_user_profile/5
$output = '<div class="profile">';
$output .= theme('user_picture', $account);
foreach ($fields as $category => $items) {
if (strlen($category) > 0) {
$output .= '<h2 class="title">'. check_plain($category) .'</h2>';
}
$output .= '<dl>';
foreach ($items as $item) {
if (isset($item['title'])) {
$output .= '<dt class="'. $item['class'] .'">'. $item['title'] .'</dt>';
}
$output .= '<dd class="'. $item['class'] .'">'. $item['value'] .'</dd>';
}
$output .= '</dl>';
}
$output .= '</div>';
return $output;
}
Update. Извините, не заметил, что вы используете модуль nodeprofile. Я никогда не использовал его, но я уверен, что электронное письмо может быть показано аналогичным образом.
Возможно, мой вопрос был недостаточно ясным. Но я хотел показать адрес электронной почты, на который пользователи зарегистрировали свою учетную запись, а не просто добавить другое поле электронной почты. –
Может быть, панели могут вам помочь, у него есть возможность показывать поля профиля пользователя в блоке. – Sharique