Elgg  Version 3.0
Namespaces | Variables
language.php File Reference

Go to the source code of this file.


 Configuration exception.


 $user = elgg_get_page_owner_entity()
if(!$user instanceof ElggUser$options = get_installed_translations(true)
if(count($options)< 2) $content

Variable Documentation

if (count($options)< 2) $content
Initial value:
'#type' => 'select',
'name' => 'language',
'value' => $user->language,
'options_values' => $options,
'#label' => elgg_echo('user:language:label'),
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Definition: views.php:1395
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
Definition: language.php:9
if(!$user instanceof ElggUser) $options
Definition: language.php:15

Definition at line 27 of file language.php.

if (!$user instanceof ElggUser) $options = get_installed_translations(true)

Definition at line 15 of file language.php.

Definition at line 9 of file language.php.