From 3e697c6ef822a080a2bbfb59f54a8b5fe2608cdb Mon Sep 17 00:00:00 2001 From: ewinslow Date: Sat, 12 Feb 2011 01:08:25 +0000 Subject: One more conversion to elgg_view_form git-svn-id: http://code.elgg.org/elgg/trunk@8128 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/users.php | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/engine/lib/users.php b/engine/lib/users.php index 4d388d574..fcb489394 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -785,26 +785,7 @@ function elgg_user_resetpassword_page_handler($page) { forward(); } - $form_body = elgg_echo('user:resetpassword:reset_password_confirm') . "
"; - - $form_body .= elgg_view('input/hidden', array( - 'internalname' => 'u', - 'value' => $user_guid - )); - - $form_body .= elgg_view('input/hidden', array( - 'internalname' => 'c', - 'value' => $code - )); - - $form_body .= elgg_view('input/submit', array( - 'value' => elgg_echo('resetpassword') - )); - - $form .= elgg_view('input/form', array( - 'body' => $form_body, - 'action' => 'action/user/passwordreset' - )); + $form = elgg_view_form('user/passwordreset', array(), array('user' => $user)); $title = elgg_echo('resetpassword'); $content = elgg_view_title(elgg_echo('resetpassword')) . $form; -- cgit v1.2.3