Elgg  Version 6.1
input.php
Go to the documentation of this file.
1 <?php
6 $input_type = elgg_extract('input_type', $vars);
7 unset($vars['input_type']);
8 
9 $input = elgg_view("input/{$input_type}", $vars);
11  return;
12 }
13 
14 echo elgg_format_element('div', ['class' => 'elgg-field-input'], $input);
elgg_is_empty($value)
Check if a value isn&#39;t empty, but allow 0 and &#39;0&#39;.
Definition: input.php:176
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:256
elgg_view(string $view, array $vars=[], string $viewtype= '')
Return a parsed view.
Definition: views.php:156
$input_type
Helper view that can be used to filter vars for all input views.
Definition: input.php:6
$input
Definition: input.php:9
$vars
Definition: theme.php:5
elgg_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition: output.php:145