From 606ae57ee7a245736367068db7827849215b9e07 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Sat, 12 Feb 2011 06:46:21 +0000 Subject: Refs #2143: DRYed up input/longtext -- maybe I missed it, but was there a difference b/w plaintext and longtext? git-svn-id: http://code.elgg.org/elgg/trunk@8146 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/input/longtext.php | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) (limited to 'views/default') diff --git a/views/default/input/longtext.php b/views/default/input/longtext.php index 4a24d1a43..43534eec7 100644 --- a/views/default/input/longtext.php +++ b/views/default/input/longtext.php @@ -7,28 +7,13 @@ * @subpackage Core * * @uses $vars['value'] The current value, if any - will be html encoded - * @uses $vars['js'] Any Javascript to enter into the input tag - * @uses $vars['internalname'] The name of the input field - * @uses $vars['internalid'] The id of the input field - * @uses $vars['class'] CSS class * @uses $vars['disabled'] Is the input field disabled? */ -$class = "elgg-input-textarea"; -if (isset($vars['class'])) { - $class = $vars['class']; -} +$defaults = array( + 'class' => 'elgg-input-longtext', +); -$disabled = false; -if (isset($vars['disabled'])) { - $disabled = $vars['disabled']; -} +$vars = array_merge($defaults, $vars); -$value = ''; -if (isset($vars['value'])) { - $value = $vars['value']; -} - -?> - - \ No newline at end of file +echo elgg_view('input/plaintext', $vars); -- cgit v1.2.3