Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
password.php
Go to the documentation of this file.
1 <?php
14 $vars['class'] = (array) elgg_extract('class', $vars, []);
15 $vars['class'][] = 'elgg-input-password';
16 
17 $defaults = array(
18  'disabled' => false,
19  'value' => '',
20  'autocapitalize' => 'off',
21  'autocorrect' => 'off',
22  'type' => 'password'
23 );
24 
25 $vars = array_merge($defaults, $vars);
26 
27 echo elgg_format_element('input', $vars);
$defaults
Definition: password.php:17
$vars['class']
Definition: password.php:14
elgg_format_element($tag_name, array $attributes=array(), $text= '', array $options=array())
Format an HTML element.
Definition: output.php:218
elgg_extract($key, $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
Definition: elgglib.php:1310