20 '#help' =>
elgg_echo(
'user:username:help'),
22 'value' =>
$user->username,
elgg_view_module(string $type, string $title, string $body, array $vars=[])
Wrapper function for the module display pattern.
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
elgg_get_config(string $name, $default=null)
Get an Elgg configuration value.
elgg_is_admin_logged_in()
Returns whether or not the viewer is currently logged in and an admin user.
if(!$user instanceof ElggUser) $body
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
elgg_get_page_owner_entity()
Gets the owner entity for the current page.
if(!elgg_is_admin_logged_in()&&!elgg_get_config('can_change_username')) $user
Provide a way of changing the username of a user.