Elgg  Version 6.1
password.php
Go to the documentation of this file.
1 <?php
13 $vars['class'] = elgg_extract_class($vars, 'elgg-input-password');
14 
16  'autocapitalize' => 'off',
17  'autocomplete' => 'off',
18  'spellcheck' => 'false',
19  'type' => 'password',
20 ];
21 
22 $vars = array_merge($defaults, $vars);
23 
24 $always_empty = elgg_extract('always_empty', $vars, true);
25 unset($vars['always_empty']);
26 
28  unset($vars['value']);
29 }
30 
31 echo elgg_format_element('input', $vars);
$always_empty
Definition: password.php:24
$defaults
Definition: password.php:15
$vars['class']
Elgg password input Displays a password input field.
Definition: password.php:13
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_format_element(string $tag_name, array $attributes=[], string $text= '', array $options=[])
Format an HTML element.
Definition: output.php:145
elgg_extract_class(array $array, array|string $existing=[], string $extract_key= 'class')
Extract class names from an array, optionally merging into a preexisting set.
Definition: elgglib.php:279