aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/plaintext.php
blob: cd0a7d6b585a1079608fdde8c2295cdfa8ad85d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
/**
 * Elgg long text input
 * Displays a long text input field
 *
 * @package Elgg
 * @subpackage Core
 * @author Curverider Ltd
 * @link http://elgg.org/
 *
 */

$defaults = array(
	'class' => 'input-plaintext',
);

$value = $vars['value'];
unset($vars['value']);

$attributes = html5_get_html_attributes(array_merge($defaults, $vars));

echo "<textarea $attributes>$value</textarea>";