blob: a19c7dde8b1888ff0db487a2825558b4ffc2551c (
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
30
31
32
33
|
<?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-textarea',
);
$overrides = array(
'tag' => 'textarea',
);
$args = array_merge($defaults, $vars, $overrides);
if (isset($args['value'])) {
$args['body'] = $args['value'];
}
$args['class'] = $args['class'].' input-richtext';
echo elgg_view('html/tag', $args);
|