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