Elgg  Version master
Variables
changepassword.php File Reference

Go to the source code of this file.

Variables

 $fields
 Reset user password form. More...
 
foreach($fields as $field) $footer
 

Variable Documentation

◆ $fields

$fields
Initial value:
= [
[
'#type' => 'hidden',
'name' => 'u',
'value' => elgg_extract('guid', $vars),
],
[
'#type' => 'hidden',
'name' => 'c',
'value' => elgg_extract('code', $vars),
],
[
'#type' => 'password',
'#label' => elgg_echo('user:password:label'),
'name' => 'password1',
'autocomplete' => 'new-password',
'add_security_requirements' => true,
],
[
'#type' => 'password',
'#label' => elgg_echo('user:password2:label'),
'name' => 'password2',
'autocomplete' => 'new-password',
'add_security_requirements' => true,
],
]
$vars
Definition: theme.php:5
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_echo(string $message_key, array $args=[], string $language='')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17

Reset user password form.

Definition at line 10 of file changepassword.php.

◆ $footer

foreach ( $fields as $field) $footer
Initial value:
'#type' => 'submit',
'text' => elgg_echo('changepassword'),
])
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Definition: views.php:1112

Definition at line 41 of file changepassword.php.