Elgg  Version 3.0
name.php
Go to the documentation of this file.
1 <?php
2 
11 if (!$user instanceof ElggUser) {
12  return;
13 }
14 
15 $title = elgg_echo('user:name:label');
17  '#type' => 'text',
18  'name' => 'name',
19  'value' => $user->name,
20  '#label' => elgg_echo('name'),
21 ]);
22 
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Definition: views.php:1395
if(!$user instanceof ElggUser) $title
Definition: name.php:15
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
elgg_view_module($type, $title, $body, array $vars=[])
Wrapper function for the module display pattern.
Definition: views.php:1198
elgg echo
Translates a string.
Definition: languages.js:43
$user
Definition: name.php:10
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
Definition: pageowner.php:65
$content
Definition: name.php:16