Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
email.php
Go to the documentation of this file.
1 <?php
10 
11 if (!$user instanceof ElggUser) {
12  return;
13 }
14 
15 $title = elgg_echo('email:settings');
16 $content = elgg_view_input('email', array(
17  'name' => 'email',
18  'value' => $user->email,
19  'label' => elgg_echo('email:address:label'),
20 ));
21 
22 echo elgg_view_module('info', $title, $content);
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg_view_input($input_type, array $vars=array())
Renders a form field.
Definition: views.php:1332
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
Definition: pageowner.php:56
$content
Definition: email.php:16
elgg_view_module($type, $title, $body, array $vars=array())
Wrapper function for the module display pattern.
Definition: views.php:1207
$user
Definition: email.php:9
if(!$user instanceof ElggUser) $title
Definition: email.php:15