19 '#type' =>
'password',
20 '#label' =>
elgg_echo(
'email:address:password'),
21 '#help' =>
elgg_echo(
'email:address:password:help'),
22 'name' =>
'email_password',
23 'autocomplete' =>
'current-password',
34 '#label' =>
elgg_echo(
'email:address:label'),
37 'value' =>
$user->email,
43 $user_setting =
$user->admin_validation_notification;
46 '#type' =>
'checkbox',
47 '#label' =>
elgg_echo(
'account:email:admin:validation_notification'),
48 '#help' =>
elgg_echo(
'account:email:admin:validation_notification:help'),
49 'name' =>
'admin_validation_notification',
51 'checked' => isset($user_setting) ? (
bool) $user_setting :
true,
if(!$user instanceof ElggUser) $title
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_get_config(string $name, $default=null)
Get an Elgg configuration value.
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
if(elgg_get_config('security_email_require_password')&&($user->getGUID()===elgg_get_logged_in_user_guid())) $email_help
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
$user
Provide a way of setting your email.
elgg_get_logged_in_user_guid()
Return the current logged in user by guid.