]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #2143: DRY up input/hidden
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 12 Feb 2011 06:26:15 +0000 (06:26 +0000)
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 12 Feb 2011 06:26:15 +0000 (06:26 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8143 36083f99-b078-4883-b0ff-0f9b5a30f544

views/default/input/hidden.php

index a201289b740ced48cc59982241bd306538f056d8..9c2fc6c08b87205052fbf03dbc75cf437dbe1846 100644 (file)
@@ -1,17 +1,12 @@
 <?php
 /**
  * Create a hidden data field
- * Use this view for forms rather than creating a hidden tag in the wild as it provides
- * extra security which help prevent CSRF attacks.
  *
  * @package Elgg
  * @subpackage Core
  *
  * @uses $vars['value'] The current value, if any
- * @uses $vars['js'] Any Javascript to enter into the input tag
- * @uses $vars['internalname'] The name of the input field
- *
  */
 
 ?>
-<input type="hidden" <?php echo $vars['js']; ?> name="<?php echo $vars['internalname']; ?>" <?php if (isset($vars['internalid'])) echo "id=\"{$vars['internalid']}\""; ?> value="<?php echo htmlentities($vars['value'], ENT_QUOTES, 'UTF-8'); ?>" />
\ No newline at end of file
+<input type="hidden" <?php echo elgg_format_attributes($vars); ?> />
\ No newline at end of file