blob: 1020ef640e62ee3dbf35f126de90b66a945ec943 (
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
|
<?php
/**
* Elgg long text input
* Displays a long text input field
*
* @package Elgg
* @subpackage Core
* @author Curverider Ltd
* @link http://elgg.org/
*
* @uses $vars['value'] The current value, if any
* @uses $vars['js'] Any Javascript to enter into the input tag
* @uses $vars['internalname'] The name of the input field
*
*/
$defaults = array(
'class' => 'input-richtext',
);
$value = $vars['value'];
unset($vars['value']);
$attributes = html5_get_html_attributes(array_merge($defaults, $vars));
echo "<textarea $attributes>$value</textarea>";
|