aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/form.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/input/form.php')
-rw-r--r--views/default/input/form.php21
1 files changed, 4 insertions, 17 deletions
diff --git a/views/default/input/form.php b/views/default/input/form.php
index e6b4f299e..c30dd5c9a 100644
--- a/views/default/input/form.php
+++ b/views/default/input/form.php
@@ -17,23 +17,10 @@
*
*/
+if ($vars['disable_security'] != TRUE) {
+ $vars['body'] .= elgg_view('input/securitytoken');
+}
-$defaults = array(
- 'method' => 'POST',
- 'body' => '',
-);
-
-$overrides = array(
- 'tag' => 'form',
-);
-
-$disable_security = $vars['disable_security'];
unset($vars['disable_security']);
-$args = array_merge($defaults, $vars, $overrides);
-
-if ($disable_security != TRUE) {
- $args['body'] .= elgg_view('input/securitytoken');
-}
-
-echo elgg_view('html/tag', $args);
+echo elgg_view('html/form', $vars);