aboutsummaryrefslogtreecommitdiff
path: root/views/default/input/form.php
diff options
context:
space:
mode:
authorEvan Winslow <evan@elgg.org>2011-03-18 21:28:05 -0700
committerEvan Winslow <evan@elgg.org>2011-03-18 21:28:05 -0700
commitdff32c364b99e57db5ea891ce93f7ab5df9b3258 (patch)
treeff0cd57619974d1ed9e8c9327434cebba9c7a1f6 /views/default/input/form.php
parente45dc237367658ed750701d1055e975eaef63f19 (diff)
downloadelgg-dff32c364b99e57db5ea891ce93f7ab5df9b3258.tar.gz
elgg-dff32c364b99e57db5ea891ce93f7ab5df9b3258.tar.bz2
Removed custom html5 function in favor of core function
Diffstat (limited to 'views/default/input/form.php')
-rw-r--r--views/default/input/form.php33
1 files changed, 0 insertions, 33 deletions
diff --git a/views/default/input/form.php b/views/default/input/form.php
deleted file mode 100644
index 364e13f86..000000000
--- a/views/default/input/form.php
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-/**
- * Create a form for data submission.
- * Use this view for forms rather than creating a form tag in the wild as it provides
- * extra security which help prevent CSRF attacks.
- *
- * @package Elgg
- * @subpackage Core
- * @author Curverider Ltd
- * @link http://elgg.org/
- *
- * @uses $vars['body'] The body of the form (made up of other input/xxx views and html
- * @uses $vars['disable_security'] Force the securitytokens not to be added to this form (@todo what's the point??)
- *
- */
-$defaults = array(
- 'body' => '',
- 'method' => 'POST',
-);
-
-$vars = array_merge($defaults, $vars);
-
-$body = $vars['body'];
-unset($vars['body']);
-
-if ($vars['disable_security'] != TRUE) {
- $body .= elgg_view('input/securitytoken');
-}
-unset($vars['disable_security']);
-
-$attributes = html5_get_html_attributes($vars);
-
-echo "<form $attributes>$body</form>";