Elgg  Version 2.3
Namespaces | Variables
password.php File Reference

Go to the source code of this file.

Namespaces

 Elgg
 Save menu items.
 

Variables

 $user = elgg_get_page_owner_entity()
 
if(! $user instanceof ElggUser$title = elgg_echo('user:set:password')
 
 $admin = ''
 
if(!elgg_is_admin_logged_in()||elgg_is_admin_logged_in() && $user->guid==elgg_get_logged_in_user_guid()) $password
 
 $password2
 
 $content = $admin . $password . $password2
 

Variable Documentation

◆ $admin

$admin = ''

Definition at line 18 of file password.php.

◆ $content

$content = $admin . $password . $password2

Definition at line 39 of file password.php.

◆ $password

Initial value:
'#type' => 'password',
'name' => 'password',
'#label' => elgg_echo('user:password:label'),
))
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Definition: views.php:1424

Definition at line 27 of file password.php.

◆ $password2

$password2
Initial value:
'#type' => 'password',
'name' => 'password2',
'#label' => elgg_echo('user:password2:label')
))

Definition at line 33 of file password.php.

◆ $title

if (! $user instanceof ElggUser) $title = elgg_echo('user:set:password')

Definition at line 15 of file password.php.

◆ $user

Definition at line 9 of file password.php.