Elgg  Version 5.1
Go to the documentation of this file.
1 <?php
6 $input_type = elgg_extract('input_type', $vars);
7 unset($vars['input_type']);
9 $input = elgg_view("input/$input_type", $vars);
11 echo elgg_format_element('div', [
12  'class' => 'elgg-field-input',
13 ], $input);
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
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:177
Helper view that can be used to filter vars for all input views.
Definition: input.php:6
Definition: input.php:9
Definition: theme.php:5
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition: output.php:145