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.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/views/default/input/option.php b/views/default/input/option.php
new file mode 100644
index 000000000..eab1dc4d2
--- /dev/null
+++ b/views/default/input/option.php
@@ -0,0 +1,17 @@
+<?php
+
+$overrides = array(
+ 'tag' => 'option',
+);
+
+$args = array_merge($vars, $overrides);
+
+if (!isset($args['body'])) {
+ $args['body'] = $args['value'];
+}
+
+if (isset($args['body'])) {
+ $args['body'] = htmlentities($args['body'], ENT_QUOTES, 'UTF-8');
+}
+
+echo elgg_view('html/tag', $args); \ No newline at end of file