diff options
Diffstat (limited to 'views')
-rw-r--r-- | views/default/input/longtext.php | 25 |
1 files changed, 5 insertions, 20 deletions
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']; -} - -?> - -<textarea class="<?php echo $class; ?>" name="<?php echo $vars['internalname']; ?>" <?php if (isset($vars['internalid'])) echo "id=\"{$vars['internalid']}\""; ?> <?php if ($disabled) echo ' disabled="yes" '; ?> <?php echo $vars['js']; ?>><?php echo htmlentities($value, ENT_QUOTES, 'UTF-8'); ?></textarea>
\ No newline at end of file +echo elgg_view('input/plaintext', $vars); |