Elgg  Version 3.0
requestnewpassword.php
Go to the documentation of this file.
1 <?php
9 $username = elgg_extract('username', $vars, '');
10 
11 echo elgg_view('output/longtext', ['value' => elgg_echo('user:password:text')]);
12 
14  '#type' => 'text',
15  '#label' => elgg_echo('loginusername'),
16  'name' => 'username',
17  'value' => $username,
18  'autofocus' => empty($username),
19 ]);
20 
21 echo elgg_view_field(['#type' => 'captcha']);
22 
24  '#type' => 'submit',
25  'value' => elgg_echo('request'),
26 ]);
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Definition: views.php:1395
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg_set_form_footer($footer= '')
Sets form footer and defers its rendering until the form view and extensions have been rendered...
Definition: views.php:1331
elgg echo
Translates a string.
Definition: languages.js:43
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:1131
$username
Action to request a new password.
$vars['type']
Definition: save.php:11
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246