Elgg  Version master
template.php
Go to the documentation of this file.
1 <?php
9 $variables = elgg_extract('variables', $vars, []);
11 
12 foreach ($variables as $name => $params) {
13  $params['#type'] = elgg_extract('type', $params, 'text');
14  $params['#label'] = elgg_echo("install:{$type}:label:{$name}");
15  $params['#help'] = elgg_echo("install:{$type}:help:{$name}");
16  $params['name'] = $name;
17 
19 }
20 
21 echo elgg_format_element('div', [
22  'class' => 'elgg-install-nav',
23 ], elgg_view_field([
24  '#type' => 'submit',
25  'text' => elgg_echo('install:next'),
26 ]));
$params
Saves global plugin settings.
Definition: save.php:13
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||!$user->canDelete()) $name
Definition: delete.php:22
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
$variables
Generic form template for install forms.
Definition: template.php:9
$vars
Definition: theme.php:5
$type
Definition: template.php:10
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition: output.php:145