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