17 '#type' =>
'password',
18 '#label' =>
elgg_echo(
'user:current_password:label'),
19 'name' =>
'current_password',
20 'autocomplete' =>
'current-password',
25 '#type' =>
'password',
26 '#label' =>
elgg_echo(
'user:password:label'),
28 'autocomplete' =>
'new-password',
29 'add_security_requirements' =>
true,
33 '#type' =>
'password',
34 '#label' =>
elgg_echo(
'user:password2:label'),
35 'name' =>
'password2',
36 'autocomplete' =>
'new-password',
37 'add_security_requirements' =>
true,
elgg_view_module(string $type, string $title, string $body, array $vars=[])
Wrapper function for the module display pattern.
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
elgg_is_admin_logged_in()
Returns whether or not the viewer is currently logged in and an admin user.
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
$user
Provide a way of setting your password.
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
if(!$user instanceof ElggUser) $content
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
elgg_get_logged_in_user_guid()
Return the current logged in user by guid.