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