aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/option.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/input/option.php')
-rw-r--r--views/default/input/option.php22
1 files changed, 7 insertions, 15 deletions
diff --git a/views/default/input/option.php b/views/default/input/option.php
index 2955f1cb9..f420c9be4 100644
--- a/views/default/input/option.php
+++ b/views/default/input/option.php
@@ -1,21 +1,13 @@
<?php
-$defaults = array(
+$text = $vars['text'];
-);
-
-$overrides = array(
- 'tag' => 'option',
-);
-
-$args = array_merge($defaults, $vars, $overrides);
-
-if (!isset($args['body'])) {
- $args['body'] = $args['value'];
+if (!isset($text)) {
+ $text = $vars['value'];
+ unset($vars['value']);
}
-if (isset($args['body'])) {
- $args['body'] = htmlentities($args['body'], ENT_QUOTES, 'UTF-8');
-}
+$text = htmlentities($text, ENT_QUOTES, 'UTF-8');
+$attributes = html5_get_html_attributes($vars);
-echo elgg_view('html/tag', $args); \ No newline at end of file
+echo "<option $attributes>$text</option>"; \ No newline at end of file