Elgg  Version 6.1
changepassword.php
Go to the documentation of this file.
1 <?php
6 echo elgg_view('output/longtext', [
7  'value' => elgg_echo('user:changepassword:change_password_confirm'),
8 ]);
9 
11  [
12  '#type' => 'hidden',
13  'name' => 'u',
14  'value' => elgg_extract('guid', $vars),
15  ],
16  [
17  '#type' => 'hidden',
18  'name' => 'c',
19  'value' => elgg_extract('code', $vars),
20  ],
21  [
22  '#type' => 'password',
23  '#label' => elgg_echo('user:password:label'),
24  'name' => 'password1',
25  'autocomplete' => 'new-password',
26  'add_security_requirements' => true,
27  ],
28  [
29  '#type' => 'password',
30  '#label' => elgg_echo('user:password2:label'),
31  'name' => 'password2',
32  'autocomplete' => 'new-password',
33  'add_security_requirements' => true,
34  ],
35 ];
36 
37 foreach ($fields as $field) {
38  echo elgg_view_field($field);
39 }
40 
42  '#type' => 'submit',
43  'text' => elgg_echo('changepassword'),
44 ]);
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Definition: views.php:1112
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
if(elgg_extract('input_type', $vars)) if(elgg_extract('required', $vars)) if(elgg_extract('disabled', $vars)) $field
Definition: field.php:42
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:256
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:156
elgg_set_form_footer(string $footer= '')
Sets form footer and defers its rendering until the form view and extensions have been rendered...
Definition: views.php:1046
foreach($fields as $field) $footer
$fields
Reset user password form.
$vars
Definition: theme.php:5