summaryrefslogtreecommitdiff
path: root/modules/user/user.pages.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-07-16 21:59:29 +0000
committerDries Buytaert <dries@buytaert.net>2008-07-16 21:59:29 +0000
commit57fe5103daf5db65cd43f309e0f22f5c4781605d (patch)
treef111e494e7ce2c666727c35541b3758c3c0dad84 /modules/user/user.pages.inc
parent11b9f390bfc37d8df0fabde3a3417d60b55f8de4 (diff)
downloadbrdo-57fe5103daf5db65cd43f309e0f22f5c4781605d.tar.gz
brdo-57fe5103daf5db65cd43f309e0f22f5c4781605d.tar.bz2
- Patch #252013 by Eaton, pwolanin, Susurrus et al: drupal_render() now printes #markup, not #value.
Diffstat (limited to 'modules/user/user.pages.inc')
-rw-r--r--modules/user/user.pages.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/user/user.pages.inc b/modules/user/user.pages.inc
index 8a32f87c4..3213208a2 100644
--- a/modules/user/user.pages.inc
+++ b/modules/user/user.pages.inc
@@ -105,8 +105,8 @@ function user_pass_reset(&$form_state, $uid, $timestamp, $hashed_pass, $action =
drupal_goto('user/' . $user->uid . '/edit');
}
else {
- $form['message'] = array('#value' => t('<p>This is a one-time login for %user_name and will expire on %expiration_date.</p><p>Click on this button to login to the site and change your password.</p>', array('%user_name' => $account->name, '%expiration_date' => format_date($timestamp + $timeout))));
- $form['help'] = array('#value' => '<p>' . t('This login can be used only once.') . '</p>');
+ $form['message'] = array('#markup' => t('<p>This is a one-time login for %user_name and will expire on %expiration_date.</p><p>Click on this button to login to the site and change your password.</p>', array('%user_name' => $account->name, '%expiration_date' => format_date($timestamp + $timeout))));
+ $form['help'] = array('#markup' => '<p>' . t('This login can be used only once.') . '</p>');
$form['submit'] = array('#type' => 'submit', '#value' => t('Log in'));
$form['#action'] = url("user/reset/$uid/$timestamp/$hashed_pass/login");
return $form;
@@ -186,7 +186,7 @@ function template_preprocess_user_profile(&$variables) {
*/
function template_preprocess_user_profile_item(&$variables) {
$variables['title'] = $variables['element']['#title'];
- $variables['value'] = $variables['element']['#value'];
+ $variables['value'] = $variables['element']['#markup'];
$variables['attributes'] = '';
if (isset($variables['element']['#attributes'])) {
$variables['attributes'] = drupal_attributes($variables['element']['#attributes']);