aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-11 13:44:55 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-11 13:44:55 +0000
commit72a267095253a9e26b1cb17faad3ee28bfd23ab9 (patch)
tree2265843b9d0a665dc63873080513ffb2f717451f /views/default
parent558b17feaf25dbda262be2afbc76d79e006212a9 (diff)
downloadelgg-72a267095253a9e26b1cb17faad3ee28bfd23ab9.tar.gz
elgg-72a267095253a9e26b1cb17faad3ee28bfd23ab9.tar.bz2
Minor modifications to form.
git-svn-id: https://code.elgg.org/elgg/trunk@1826 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r--views/default/input/form.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/views/default/input/form.php b/views/default/input/form.php
index dc5ae5426..31415a287 100644
--- a/views/default/input/form.php
+++ b/views/default/input/form.php
@@ -18,6 +18,8 @@
*
*/
+ $id = $vars['internalid'];
+ $name = $vars['internalname'];
$body = $vars['body'];
$action = $vars['action'];
$enctype = $vars['enctype'];
@@ -29,7 +31,7 @@
$security_header = elgg_view('input/hidden', array('internalname' => '__elgg_token', 'value' => $token));
$security_header .= elgg_view('input/hidden', array('internalname' => '__elgg_ts', 'value' => $ts));
?>
-<form action="<?php echo $action; ?>" method="<?php echo $method; ?>" <?php if ($enctype!="") echo "enctype=\"$enctype\""; ?>>
+<form <?php if ($id) { ?>id="<?php echo $id; ?>" <?php } ?> <?php if ($name) { ?>name="<?php echo $name; ?>" <?php } ?> action="<?php echo $action; ?>" method="<?php echo $method; ?>" <?php if ($enctype!="") echo "enctype=\"$enctype\""; ?>>
<?php echo $security_header; ?>
<?php echo $body; ?>
</form> \ No newline at end of file