Elgg  Version master
Variables
email.php File Reference

Go to the source code of this file.

Variables

 $user = elgg_extract('entity', $vars, elgg_get_page_owner_entity())
 Provide a way of setting your email. More...
 
if(! $user instanceof \ElggUser$fields = []
 
if(elgg_get_config('security_email_require_password') &&($user->guid===elgg_get_logged_in_user_guid())) $email_help = null
 
if(elgg_get_config('security_email_require_confirmation') &&isset($user->new_email)) $fields []
 
 if (count( $fields)===1)
 

Variable Documentation

◆ $email_help

if (elgg_get_config( 'security_email_require_password') &&( $user->guid===elgg_get_logged_in_user_guid())) $email_help = null

Definition at line 26 of file email.php.

◆ $fields [1/2]

if (! $user instanceof \ElggUser) $fields = []

Definition at line 13 of file email.php.

◆ $fields [2/2]

if (elgg_get_config( 'security_email_require_confirmation') &&isset( $user->new_email)) $fields[]
Initial value:
= [
'#type' => 'email',
'#label' => elgg_echo('email:address:label'),
'#help' => $email_help,
'name' => 'email',
'value' => $user->email,
]
$user
Provide a way of setting your email.
Definition: email.php:8
if(elgg_get_config('security_email_require_password') &&($user->guid===elgg_get_logged_in_user_guid())) $email_help
Definition: email.php:26
elgg_echo(string $message_key, array $args=[], string $language='')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17

Definition at line 31 of file email.php.

◆ $user

$user = elgg_extract('entity', $vars, elgg_get_page_owner_entity())

Provide a way of setting your email.

@uses $vars['entity'] the user to set settings for

Definition at line 8 of file email.php.

◆ if

if(count($fields)===1) ( count( $fields)  = == 1)

Definition at line 39 of file email.php.