Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
email.php
Go to the documentation of this file.
1 <?php
12 $vars['class'] = (array) elgg_extract('class', $vars, []);
13 $vars['class'][] = 'elgg-input-email';
14 
15 $defaults = array(
16  'disabled' => false,
17  'autocapitalize' => 'off',
18  'autocorrect' => 'off',
19  'type' => 'email'
20 );
21 
22 $vars = array_merge($defaults, $vars);
23 
24 echo elgg_format_element('input', $vars);
$defaults
Definition: email.php:15
elgg_format_element($tag_name, array $attributes=array(), $text= '', array $options=array())
Format an HTML element.
Definition: output.php:218
$vars['class']
Definition: email.php:12
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