Elgg  Version 4.3
basic.php
Go to the documentation of this file.
1 <?php
2 
4 
6  '#type' => 'text',
7  'name' => 'sitename',
8  '#label' => elgg_echo('installation:sitename'),
9  'value' => $site->name,
10 ]);
11 
13  '#type' => 'text',
14  'name' => 'sitedescription',
15  '#label' => elgg_echo('installation:sitedescription'),
16  '#help' => elgg_echo('installation:sitedescription:help'),
17  'value' => $site->description,
18 ]);
19 
21  '#type' => 'email',
22  'name' => 'siteemail',
23  '#label' => elgg_echo('installation:siteemail'),
24  '#help' => elgg_echo('installation:siteemail:help'),
25  'value' => $site->email,
26  'class' => 'elgg-input-text',
27 ]);
28 
29 echo elgg_view_module('info', elgg_echo('admin:settings:basic'), $result);
$site
Definition: basic.php:3
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Definition: views.php:1143
elgg_echo($message_key, array $args=[], $language="")
Elgg language module Functions to manage language and translations.
Definition: languages.php:18
elgg_view_module($type, $title, $body, array $vars=[])
Wrapper function for the module display pattern.
Definition: views.php:944
elgg_get_site_entity()
Get the current site entity.
Definition: entities.php:99
elgg echo
Translates a string.
Definition: deprecated.js:530
$result
Definition: basic.php:5