From 01885737378a9e430de23ca30eca6430583e86d7 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Sat, 20 Nov 2010 06:30:06 +0000 Subject: Refs #2143: DRY up input/email git-svn-id: http://code.elgg.org/elgg/trunk@7358 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/input/email.php | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) (limited to 'views/default/input') diff --git a/views/default/input/email.php b/views/default/input/email.php index efe2c5848..81e617476 100644 --- a/views/default/input/email.php +++ b/views/default/input/email.php @@ -5,24 +5,18 @@ * * @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 - * */ -$class = $vars['class']; -if (!$class) { - $class = "input_text"; -} +$defaults = array( + 'class' => 'input_text', //@todo input_email? + 'disabled' => FALSE, +); + +$vars = array_merge($defaults, $vars); if (!isset($vars['value']) || $vars['value'] === FALSE) { $vars['value'] = elgg_get_sticky_value($vars['internalname']); } - ?> - name="" value="" class=""/> \ No newline at end of file + /> \ No newline at end of file -- cgit v1.2.3