aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/longtext.php
blob: ec0f170ca6cfde70a176819515a17ac578471e05 (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
<?php
/**
 * Elgg long text input
 * Displays a long text input field
 *
 * @package Elgg
 * @subpackage Core
 *
 * @uses $vars['value'] The current value, if any - will be html encoded
 * @uses $vars['disabled'] Is the input field disabled?
 */

$defaults = array(
	'class' => 'elgg-input-longtext',
	'id' => 'elgg-input-' . rand(), //@todo make this more robust
);

// work around for deprecation code in elgg_views()
unset($vars['internalname']);
unset($vars['internalid']);

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

echo elgg_view_menu('longtext', array(
	'sort_by' => 'priority',
	'class' => 'elgg-menu-hz',
));
echo elgg_view('input/plaintext', $vars);