Elgg  Version master
Go to the documentation of this file.
1 <?php
9 if (!$user instanceof ElggUser) {
10  return;
11 }
13 $title = elgg_echo('user:name:label');
15  '#type' => 'text',
16  '#label' => elgg_echo('name'),
17  'name' => 'name',
18  'value' => $user->name,
19 ]);
21 echo elgg_view_module('info', $title, $content);
elgg_view_module(string $type, string $title, string $body, array $vars=[])
Wrapper function for the module display pattern.
Definition: views.php:919
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Definition: views.php:1112
if(!$user instanceof ElggUser) $title
Definition: name.php:13
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:254
Provide a way of setting your full name.
Definition: name.php:8
Gets the owner entity for the current page.
Definition: pageowner.php:23
Definition: theme.php:5
Definition: name.php:14