Elgg  Version 2.3
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');
18  '#type' => 'text',
19  'name' => 'name',
20  'value' => $user->name,
21  '#label' => elgg_echo('name'),
22  ));
23 
25 
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Definition: views.php:1424
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 echo
Translates a string.
Definition: languages.js:48
$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:1250
$content
Definition: name.php:17