Elgg  Version 3.0
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  ],
26  [
27  '#type' => 'password',
28  '#label' => elgg_echo('user:password2:label'),
29  'name' => 'password2',
30  ],
31 ];
32 
33 foreach ($fields as $field) {
34  echo elgg_view_field($field);
35 }
36 
38  '#type' => 'submit',
39  'value' => elgg_echo('changepassword'),
40 ]);
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
foreach($fields as $field) $footer
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
$fields
Reset user password form.
if(elgg_extract('required', $vars)) $field
Definition: field.php:34
$vars['type']
Definition: save.php:11
elgg_view($view, $vars=[], $viewtype= '')
Return a parsed view.
Definition: views.php:246