aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/default.php
blob: 4f4eecc596324bc9084f9179534ee810c1db3b47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
/**
 * Create an input field
 *
 * @package Elgg
 * @subpackage Core
 * @author Curverider Ltd
 * @link http://elgg.org/
 *
 * @uses $vars['internalname'] The name of the input field
 * @uses $vars['internalid'] The id of the input field
 * @deprecated $vars['js'] Use named attributes instead
 *
 * All other input attributes can be specified using their attribute name
 * including javascript event attributes such as onclick.
 */

// default attributes
$defaults = array(
	'type' => 'text',
);

$overrides = array(
	'tag' => 'input',
);

$args = array_merge($defaults, $vars, $overrides);

echo elgg_view('html/tag', $args);