Elgg  Version master
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);
elgg_view_module(string $type, string $title, string $body, array $vars=[])
Wrapper function for the module display pattern.
Definition: views.php:919
$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:1112
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition: languages.php:17
elgg_get_site_entity()
Get the current site entity.
Definition: entities.php:101
$result
Definition: basic.php:5